org.hibernate.SessionFactory , org.hibernate.impl.SessionFactoryImpl
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: The map of regionsGet a map of all the second level cache regions currently maintained in this session factory. |
| public CollectionPersister | Returns: The persisterThe role (name) of the collection for which to retrieve the
persister. role)Get the persister object for a collection role. |
| public Set | Returns: set of all the collection roles in which the given entityName participates.The entity name for which to get the collection roles. entityName)Retrieves a set of all the collection roles in which the given entity is a participant, as either an index or an element. |
| public ConnectionProvider | |
| public Dialect | |
| public EntityNotFoundDelegate | |
| public EntityPersister | Returns: The persisterThe name of the entity for which to retrieve the persister. entityName)Get the persister for the named entity |
| public SessionFactoryObserver | |
| public FetchProfile | Returns: The profile definitionThe name of the profile to retrieve. name)Retrieve fetch profile by name. |
| public IdentifierGenerator | |
| public String[] | getImplementors(String className)
Get the names of all persistent classes that implement/extend the given interface/class |
| public String | |
| public Interceptor | Returns: The factory scope interceptor, or null if none.Get the factory scoped interceptor for this factory. |
| public NamedQueryDefinition | |
| public NamedSQLQueryDefinition | |
| public Properties | Returns: The properties.Get a copy of the Properties used to configure this session factory. |
| public QueryCache | |
| public QueryCache | Returns: the existing cache, or a newly created cache if none by that region namethe name of the cache region, or null for the default query cache regionName)Get a particular named query cache, or the default cache |
| public QueryPlanCache | |
| public ResultSetMappingDefinition | |
| public String[] | |
| public Type[] | |
| public Region | Returns: The regionThe name of the region to retrieve. regionName)Get a named second-level cache region |
| public Settings | |
| public SQLExceptionConverter | Returns: The SQLExceptionConverter for this SessionFactory.Retrieves the SQLExceptionConverter in effect for this SessionFactory. |
| public SQLFunctionRegistry | |
| public StatisticsImplementor | |
| public TransactionManager | |
| public TypeResolver | |
| public UpdateTimestampsCache | |
| public Session | Returns: An appropriate session.The external jdbc connection to use, if one (i.e., optional). connection, final boolean Should the session be auto-flushed
prior to transaction completion? flushBeforeCompletionEnabled, final boolean Should the session be auto-closed after
transaction completion? autoCloseSessionEnabled, final ConnectionReleaseMode The release mode for managed jdbc connections. connectionReleaseMode)Open a session conforming to the given parameters. |
| public Session |
| getAllSecondLevelCacheRegions | back to summary |
|---|---|
| public Map Get a map of all the second level cache regions currently maintained in
this session factory. The map is structured with the region name as the
key and the
| |
| getCollectionPersister | back to summary |
|---|---|
| public CollectionPersister getCollectionPersister(String role) throws MappingException Get the persister object for a collection role.
| |
| getCollectionRolesByEntityParticipant | back to summary |
|---|---|
| public Set Retrieves a set of all the collection roles in which the given entity is a participant, as either an index or an element. | |
| getConnectionProvider | back to summary |
|---|---|
| public ConnectionProvider getConnectionProvider() Get the connection provider | |
| getDialect | back to summary |
|---|---|
| public Dialect getDialect() Get the SQL dialect.
Shorthand for
| |
| getEntityNotFoundDelegate | back to summary |
|---|---|
| public EntityNotFoundDelegate getEntityNotFoundDelegate() | |
| getEntityPersister | back to summary |
|---|---|
| public EntityPersister getEntityPersister(String entityName) throws MappingException Get the persister for the named entity
| |
| getFactoryObserver | back to summary |
|---|---|
| public SessionFactoryObserver getFactoryObserver() Return the SessionFactoryObserver attached to the SessionFactory if any | |
| getFetchProfile | back to summary |
|---|---|
| public FetchProfile getFetchProfile(String name) Retrieve fetch profile by name.
| |
| getIdentifierGenerator | back to summary |
|---|---|
| public IdentifierGenerator getIdentifierGenerator(String rootEntityName) Get the identifier generator for the hierarchy | |
| getImplementors | back to summary |
|---|---|
| public String[] getImplementors(String className) throws MappingException Get the names of all persistent classes that implement/extend the given interface/class | |
| getImportedClassName | back to summary |
|---|---|
| public String getImportedClassName(String name) Get a class name, using query language imports | |
| getInterceptor | back to summary |
|---|---|
| public Interceptor getInterceptor() Get the factory scoped interceptor for this factory.
| |
| getNamedQuery | back to summary |
|---|---|
| public NamedQueryDefinition getNamedQuery(String queryName) | |
| getNamedSQLQuery | back to summary |
|---|---|
| public NamedSQLQueryDefinition getNamedSQLQuery(String queryName) | |
| getProperties | back to summary |
|---|---|
| public Properties getProperties() Get a copy of the Properties used to configure this session factory.
| |
| getQueryCache | back to summary |
|---|---|
| public QueryCache getQueryCache() Get the default query cache | |
| getQueryCache | back to summary |
|---|---|
| public QueryCache getQueryCache(String regionName) throws HibernateException Get a particular named query cache, or the default cache
| |
| getQueryPlanCache | back to summary |
|---|---|
| public QueryPlanCache getQueryPlanCache() | |
| getResultSetMapping | back to summary |
|---|---|
| public ResultSetMappingDefinition getResultSetMapping(String name) | |
| getReturnAliases | back to summary |
|---|---|
| public String[] getReturnAliases(String queryString) throws HibernateException Get the return aliases of a query | |
| getReturnTypes | back to summary |
|---|---|
| public Type[] getReturnTypes(String queryString) throws HibernateException Get the return types of a query | |
| getSecondLevelCacheRegion | back to summary |
|---|---|
| public Region getSecondLevelCacheRegion(String regionName) Get a named second-level cache region | |
| getSettings | back to summary |
|---|---|
| public Settings getSettings() | |
| getSQLExceptionConverter | back to summary |
|---|---|
| public SQLExceptionConverter getSQLExceptionConverter() Retrieves the SQLExceptionConverter in effect for this SessionFactory.
| |
| getSqlFunctionRegistry | back to summary |
|---|---|
| public SQLFunctionRegistry getSqlFunctionRegistry() | |
| getStatisticsImplementor | back to summary |
|---|---|
| public StatisticsImplementor getStatisticsImplementor() Statistics SPI | |
| getTransactionManager | back to summary |
|---|---|
| public TransactionManager getTransactionManager() Get the JTA transaction manager | |
| getTypeResolver | back to summary |
|---|---|
| public TypeResolver getTypeResolver() Retrieve the
| |
| getUpdateTimestampsCache | back to summary |
|---|---|
| public UpdateTimestampsCache getUpdateTimestampsCache() Get the cache of table update timestamps | |
| openSession | back to summary |
|---|---|
| public Session openSession(final Connection connection, final boolean flushBeforeCompletionEnabled, final boolean autoCloseSessionEnabled, final ConnectionReleaseMode connectionReleaseMode) throws HibernateException Open a session conforming to the given parameters. Used mainly by
| |
| openTemporarySession | back to summary |
|---|---|
| public Session openTemporarySession() throws HibernateException Get a nontransactional "current" session for Hibernate EntityManager | |