Example usage for Java org.hibernate SessionFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Destroy this SessionFactory and release all resources (caches, connection pools, etc). |
Map | getAllClassMetadata() Retrieve the ClassMetadata for all mapped entities. |
Map | getAllCollectionMetadata() Get the CollectionMetadata for all mapped collections. |
Cache | getCache() Obtain direct access to the underlying cache regions. |
ClassMetadata | getClassMetadata(Class entityClass) Retrieve the ClassMetadata associated with the given entity class. |
ClassMetadata | getClassMetadata(String entityName) Retrieve the ClassMetadata associated with the given entity class. |
CollectionMetadata | getCollectionMetadata(String roleName) Get the CollectionMetadata associated with the named collection role. |
Session | getCurrentSession() Obtains the current session. |
Set | getDefinedFilterNames() Obtain a set of the names of all filters defined on this SessionFactory. |
FilterDefinition | getFilterDefinition(String filterName) Obtain the definition of a filter by name. |
SessionFactoryOptions | getSessionFactoryOptions() Get the special options used to build the factory. |
Statistics | getStatistics() Retrieve the statistics fopr this factory. |
TypeHelper | getTypeHelper() Retrieve this factory's TypeHelper . |
boolean | isClosed() Is this factory already closed? |
Session | openSession() Open a Session . |
StatelessSession | openStatelessSession() Open a new stateless session. |
StatelessSession | openStatelessSession(Connection connection) Open a new stateless session, utilizing the specified JDBC Connection . |
SessionBuilder | withOptions() Obtain a Session builder. |