org.hibernate.SessionFactory
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| protected class | Configuration.MappingsImpl
Deprecated
as a consequence of Internal implementation of the Mappings interface giving access to the Configuration's internal
metadata repository state (ExtendedMappings being deprecated.
Configuration#classes, Configuration#tables, etc).
|
| protected class | |
| pack-priv class |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private XmlDocument | |
| private XmlDocument | |
| public void | |
| private XmlDocument | |
| public Configuration | Returns: this (for method chaining)The class containing annotations annotatedClass)Read metadata from the annotations associated with this class. |
| public void | |
| public Configuration | Returns: this (for method chaining purposes)The cacheable mapping file to be added. xmlFile)Add a cached mapping file. |
| public Configuration | Returns: this (for method chaining purposes)The name of the file to be added. This must be in a form
useable to simply construct a xmlFile)java. instance.Add a cacheable mapping file. |
| public Configuration | Returns: The dom "deserialized" from the cached file.The xml file, not the bin! xmlFile)INTENDED FOR TESTSUITE USE ONLY! |
| public Configuration | |
| public Configuration | Returns: this (for method chaining purposes)The directory dir)Read all mapping documents from a directory tree. |
| public Configuration | Returns: this (for method chaining purposes)The DOM document doc)Read mappings from a DOM Document |
| public void | |
| public Configuration | |
| public Configuration | |
| public void | |
| public Configuration | Returns: this (for method chaining purposes)The input stream containing a DOM. xmlInputStream)Read mappings from an |
| public Configuration | |
| public Configuration | Returns: this (for method chaining)java package name packageName)Read package-level metadata. |
| public Configuration | Returns: this for method chainingThe properties to add. extraProperties)Add the given properties to ours. |
| private void | |
| public Configuration | Returns: this (for method chaining purposes)The resource name resourceName, ClassLoader The class loader to use. classLoader)Read mappings as a application resource (i.e. classpath lookup). |
| public Configuration | Returns: this (for method chaining purposes)The resource name resourceName)Read mappings as a application resourceName (i.e. classpath lookup) trying different class loaders. |
| public void | |
| public Configuration | |
| public Configuration | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public Mapping | |
| public void | |
| private void | buildRecursiveOrderedFkSecondPasses(List<FkSecondPass>
The list containing the orderedFkSecondPasses, Map<String, Set<FkSecondPass>> FkSecondPassOur lookup data structure to determine dependencies between tables isADependencyOf, String Table name to start recursive algorithm. startTable, String The current table name used to check for 'new' dependencies. currentTable)Recursively builds a list of FkSecondPass instances ready to be processed in this order. |
| public SessionFactory | Returns: The buildSessionFactoryCreate a |
| public Settings | Returns: The build settingsCreate an object-oriented view of the configuration properties |
| public Settings | |
| private Settings | |
| private void | |
| public Configuration | Returns: this for method chainingUse the mappings and properties specified in an application resource named hibernate.cfg.xml. |
| public Configuration | |
| public Configuration | |
| public Configuration | |
| public Configuration | |
| public Mappings | Returns: The created mappingsCreate a new Mappings to add class and collection mappings to. |
| private void | |
| private void | |
| private File | |
| private List | |
| protected Configuration | Returns: this for method chainingThe input stream from which to read stream, String The name to use in warning/error messages resourceName)Configure this configuration's state from the contents of the given input stream. |
| protected Configuration | Returns: this for method chainingThe dom4j document doc)Parse a dom4j document conforming to the Hibernate Configuration DTD (hibernate-configuration-3.0.dtd)
and use its information to configure this |
| private void | |
| private void | enableHibernateSearch()
Tries to automatically register Hibernate Search event listeners by locating the
appropriate bootstrap class and calling the |
| private void | |
| protected ExtendsQueueEntry | |
| public String[] | Returns: The sequence of DDL commands to drop the schema objectsThe dialect for which to generate the drop script dialect)Generate DDL for dropping tables |
| public String[] | Returns: The sequence of DDL commands to create the schema objectsThe dialect for which to generate the creation script dialect)
|
| public String[] | Returns: The sequence of DDL commands to apply the schema objectsThe dialect for which to generate the creation script dialect, DatabaseMetadata The database catalog information for the database to be updated; needed to work out what
should be created/altered databaseMetadata)
|
| public PersistentClass | Returns: the entity mapping informationAn entity name. entityName)Get the mapping for a particular entity |
| public Iterator | Returns: Iterator of the entity mappings currently contained in the configuration.Iterate the entity mappings |
| public Collection | Returns: The collection mapping informationa collection role role)Get the mapping for a particular collection role |
| public Iterator | Returns: Iterator of the collection mappings currently contained in the configuration.Iterate the collection mappings |
| protected InputStream | Returns: The streamThe resource to locate resource)Get the configuration file as an InputStream. |
| public EntityNotFoundDelegate | Returns: The user-supplied delegateRetrieve the user-supplied delegate to handle non-existent entity scenarios. |
| public EntityResolver | |
| public EntityTuplizerFactory | |
| public EventListeners | |
| public Map | |
| private List | Returns: Returns a list of allsecondPasses instances which are a instance of
FkSecondPass.
|
| public DefaultIdentifierGeneratorFactory | Returns: This configuration's IdentifierGeneratorFactory.Retrieve the IdentifierGeneratorFactory in effect for this configuration. |
| public Map | Returns: a mapping from "import" names to fully qualified class namesGet the query language imports |
| private EventListeners | |
| public Interceptor | |
| public Iterator | Returns: iterator over the MappedSuperclass mapping currently contained in the configuration.Iterate the mapped super class mappings EXPERIMENTAL Consider this API as PRIVATE |
| public Map | |
| public Map | |
| public NamingStrategy | |
| public PersisterClassProvider | |
| public Properties | |
| public String | Returns: The value curently associated with that property name; may be null.The name of the property propertyName)Get a property value by name |
| public ReflectionManager | |
| pack-priv RootClass | |
| public SessionFactoryObserver | |
| public Map | |
| public Map | |
| public Iterator | Returns: Iterator of the table mappings currently contained in the configuration.Iterate the table mappings |
| public TypeResolver | |
| private static boolean | |
| public Iterator | |
| private Iterator | |
| public Configuration | Returns: this for ethod chainingThe properties to merge properties)Adds the incoming properties to the internal properties structure, as long as the internal structure does not already contain an entry for the given key. |
| private void | |
| private void | |
| private void | |
| private void | |
| private List | |
| private void | |
| private void | |
| private void | |
| private int | |
| private void | processFkSecondPassInOrder()
Processes FKSecondPass instances trying to resolve any graph circularity (ie PK made of a many to one linking to an entity having a PK made of a ManyToOne ...). |
| private void | |
| private void | |
| public void | registerTypeOverride(BasicType
The type to register. type)Allows registration of a type into the type registry. |
| public void | |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| public Configuration | Returns: this for method chainingThe name of the entity to which we shoudl associate these cache settings entityName, String The cache strategy to use concurrencyStrategy)Set up a cache for an entity class |
| public Configuration | Returns: this for method chainingThe name of the entity to which we should associate these cache settings entityName, String The cache strategy to use concurrencyStrategy, String The name of the cache region to use region)Set up a cache for an entity class, giving an explicit region name |
| public void | setCacheConcurrencyStrategy(String entityName, String concurrencyStrategy, String region, boolean cacheLazyProperty)
|
| public Configuration | Returns: this for method chainingThe name of the collection to which we should associate these cache settings collectionRole, String The cache strategy to use concurrencyStrategy)Set up a cache for a collection role |
| public void | Returns: this for method chainingThe name of the collection to which we should associate these cache settings collectionRole, String The cache strategy to use concurrencyStrategy, String The name of the cache region to use region)Set up a cache for a collection role, giving an explicit region name |
| public void | setEntityNotFoundDelegate(EntityNotFoundDelegate
The delegate to use entityNotFoundDelegate)Specify a user-supplied delegate to be used to handle scenarios where an entity could not be located by specified id. This is mainly intended for EJB3 implementations to be able to control how proxy initialization errors should be handled... |
| public void | |
| public Configuration | |
| public void | |
| public void | |
| public void | |
| public void | |
| public Configuration | Returns: this for method chainingthe NamingStrategy to set namingStrategy)Set a custom naming strategy |
| public Configuration | setPersisterClassProvider(PersisterClassProvider
implementation persisterClassProvider)Defines a custom persister class provider. |
| public void | |
| public Configuration | Returns: this for method chainingThe new set of properties properties)Specify a completely new set of properties |
| public Configuration | Returns: this for method chainingThe name of the property to set propertyName, String The new property value value)Set a property value by name |
| public void | |
| private void | |
| public void | |
| private void |