Method Summary |
|
public void | close() Closes the session factory, releasing all held resources.
- cleans up used cache regions and "stops" the cache provider.
- close the JDBC connection
- remove the JNDI binding
Note: Be aware that the sessionfactory instance still can
be a "heavy" object memory wise after close() has been called. |
static SessionFactoryImpl | deserialize(ObjectInputStream ois) Custom deserialization hook used during Session deserialization. |
public void | evict(Class persistentClass, Serializable id) |
public void | evict(Class persistentClass) |
public void | evictCollection(String roleName, Serializable id) |
public void | evictCollection(String roleName) |
public void | evictEntity(String entityName, Serializable id) |
public void | evictEntity(String entityName) |
public void | evictQueries() |
public void | evictQueries(String cacheRegion) |
public Map | getAllClassMetadata() |
public Map | getAllCollectionMetadata() |
public Map | getAllSecondLevelCacheRegions() |
public BatcherFactory | getBatcherFactory() |
public ClassMetadata | getClassMetadata(Class persistentClass) |
public ClassMetadata | getClassMetadata(String entityName) |
public CollectionMetadata | getCollectionMetadata(String roleName) |
public CollectionPersister | getCollectionPersister(String role) |
public Set | getCollectionRolesByEntityParticipant(String entityName) |
public ConnectionProvider | getConnectionProvider() |
public org.hibernate.classic.Session | getCurrentSession() |
public Set | getDefinedFilterNames() |
public Dialect | getDialect() |
public EntityNotFoundDelegate | getEntityNotFoundDelegate() |
public EntityPersister | getEntityPersister(String entityName) |
public EventListeners | getEventListeners() |
public FilterDefinition | getFilterDefinition(String filterName) |
public IdentifierGenerator | getIdentifierGenerator(String rootEntityName) |
public String | getIdentifierPropertyName(String className) |
public Type | getIdentifierType(String className) |
public String[] | getImplementors(String className) Return the names of all persistent (mapped) classes that extend or implement the
given class or interface, accounting for implicit/explicit polymorphism settings
and excluding mapped subclasses/joined-subclasses of other classes in the result. |
public String | getImportedClassName(String className) |
public Interceptor | getInterceptor() |
public NamedQueryDefinition | getNamedQuery(String queryName) |
public NamedSQLQueryDefinition | getNamedSQLQuery(String queryName) |
public QueryCache | getQueryCache() |
public QueryCache | getQueryCache(String cacheRegion) |
public QueryPlanCache | getQueryPlanCache() |
public Reference | getReference() |
public Type | getReferencedPropertyType(String className, String propertyName) |
public ResultSetMappingDefinition | getResultSetMapping(String resultSetName) |
public String[] | getReturnAliases(String queryString) |
public Type[] | getReturnTypes(String queryString) |
public SQLExceptionConverter | getSQLExceptionConverter() |
public Cache | getSecondLevelCacheRegion(String regionName) |
public Settings | getSettings() |
public SQLFunctionRegistry | getSqlFunctionRegistry() |
public Statistics | getStatistics() |
public StatisticsImplementor | getStatisticsImplementor() |
public TransactionFactory | getTransactionFactory() |
public TransactionManager | getTransactionManager() |
public UpdateTimestampsCache | getUpdateTimestampsCache() |
public boolean | isClosed() |
public org.hibernate.classic.Session | openSession(Connection connection, Interceptor sessionLocalInterceptor) |
public org.hibernate.classic.Session | openSession(Interceptor sessionLocalInterceptor) |
public org.hibernate.classic.Session | openSession(Connection connection) |
public org.hibernate.classic.Session | openSession() |
public org.hibernate.classic.Session | openSession(Connection connection, boolean flushBeforeCompletionEnabled, boolean autoCloseSessionEnabled, ConnectionReleaseMode connectionReleaseMode) |
public StatelessSession | openStatelessSession() |
public StatelessSession | openStatelessSession(Connection connection) |
public org.hibernate.classic.Session | openTemporarySession() |
void | serialize(ObjectOutputStream oos) Custom serialization hook used during Session serialization. |