Java org.hibernate SessionFactory fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate SessionFactory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate SessionFactory.

The text is from its open source code.

Implementation

org.hibernate.SessionFactory has the following implementations.
Click this link to see all its implementation.

Method

voidclose()
Destroy this SessionFactory and release all resources (caches, connection pools, etc).
MapgetAllClassMetadata()
Retrieve the ClassMetadata for all mapped entities.
MapgetAllCollectionMetadata()
Get the CollectionMetadata for all mapped collections.
CachegetCache()
Obtain direct access to the underlying cache regions.
ClassMetadatagetClassMetadata(Class entityClass)
Retrieve the ClassMetadata associated with the given entity class.
ClassMetadatagetClassMetadata(String entityName)
Retrieve the ClassMetadata associated with the given entity class.
CollectionMetadatagetCollectionMetadata(String roleName)
Get the CollectionMetadata associated with the named collection role.
SessiongetCurrentSession()
Obtains the current session.
SetgetDefinedFilterNames()
Obtain a set of the names of all filters defined on this SessionFactory.
FilterDefinitiongetFilterDefinition(String filterName)
Obtain the definition of a filter by name.
SessionFactoryOptionsgetSessionFactoryOptions()
Get the special options used to build the factory.
StatisticsgetStatistics()
Retrieve the statistics fopr this factory.
TypeHelpergetTypeHelper()
Retrieve this factory's TypeHelper .
booleanisClosed()
Is this factory already closed?
SessionopenSession()
Open a Session .
StatelessSessionopenStatelessSession()
Open a new stateless session.
StatelessSessionopenStatelessSession(Connection connection)
Open a new stateless session, utilizing the specified JDBC Connection .
SessionBuilderwithOptions()
Obtain a Session builder.