Deprecated
as a consequence of SessionFactory being deprecated. See corresponding docs for further information.
org.hibernate.SessionFactory , org.hibernate.internal.SessionFactoryImpl
| Modifier and Type | Class and Description |
|---|---|
| public static interface | SessionFactoryImplementor.DeserializationResolver<T extends SessionFactoryImplementor>
Contract for resolving this SessionFactory on deserialization |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public RootGraphImplementor | |
| public <T> List | |
| public default <T> List | findEntityGraphsByType(Class<T>
the entity type for which to find all entityClass)EntityGraphs.Implements org. EntityGraphs associated with a given entity type.
|
| public CacheImplementor | getCache()
Redeclares org.
Deprecated
as a consequence of
Obtain direct access to the underlying cache regions.
CacheImplementor being deprecated.
|
| public default CollectionPersister | getCollectionPersister(String role)
Deprecated
(since 5.2) Use
MetamodelImplementor#collectionPersister(String) instead.
|
| public default Map | getCollectionPersisters()
Deprecated
(since 5.2) Use
MetamodelImplementor#collectionPersisters instead.
|
| public default 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)
Deprecated
(since 5.2) Use
MetamodelImplementor#collectionPersisters instead.
|
| public CurrentTenantIdentifierResolver | |
| public CustomEntityDirtinessStrategy | |
| public SessionFactoryImplementor. | |
| public default Dialect | Returns: The dialect
Deprecated
(since 5.2) instead, use
Get the SQL dialect.
JdbcServices#getDialect()
|
| public EntityNotFoundDelegate | |
| public default EntityPersister | getEntityPersister(String entityName)
Deprecated
(since 5.2) Use
MetamodelImplementor#entityPersister(Class) instead.
|
| public default Map | |
| public EventEngine | |
| public FastSessionServices | Returns: the FastSessionServices instance associated with this SessionFactory
|
| public FetchProfile | Returns: The profile definitionThe name of the profile to retrieve. name)Retrieve fetch profile by name. |
| public IdentifierGenerator | getIdentifierGenerator(String rootEntityName)
Deprecated
as a consequence of
Get the identifier generator for the hierarchy
IdentifierGenerator being deprecated.
|
| public default String[] | getImplementors(String entityName)
Deprecated
Use
Get the names of all persistent classes that implement/extend the given interface/class
Metamodel#getImplementors(java. instead
|
| public default String | getImportedClassName(String name)
Deprecated
Use
Get a class name, using query language imports
Metamodel#getImportedClassName(java. instead
|
| public Interceptor | Returns: The factory scope interceptor, or null if none.
Deprecated
(since 5.2) if access to the SessionFactory-scoped Interceptor is needed, use
Get the factory scoped interceptor for this factory.
SessionFactoryOptions#getInterceptor() instead.
|
| public JdbcServices | |
| public MetamodelImplementor | getMetamodel()
Redeclares javax. Metamodel interface for access to the
metamodel of the persistence unit.
|
| public String | Returns: The name for the SessionFactoryAccess to the name (if one) assigned to the SessionFactory |
| public default NamedQueryDefinition | getNamedQuery(String queryName)
Deprecated
(since 5.2) Use
NamedQueryRepository#getNamedQueryDefinition(java. instead.
|
| public NamedQueryRepository | Returns: The repository for named query definitions
Deprecated
(since 5.2) it will be replaced with the new QueryEngine concept introduced in 6.0
Provides access to the named query repository
|
| public default NamedSQLQueryDefinition | getNamedSQLQuery(String queryName)
Deprecated
(since 5.2) Use
NamedQueryRepository#getNamedSQLQueryDefinition instead.
|
| public QueryPlanCache | Returns: The query plan cache
Deprecated
(since 5.2) it will be replaced with the new QueryEngine concept introduced in 6.0
Access to the caches of HQL/JPQL and native query plans.
|
| public default ResultSetMappingDefinition | getResultSetMapping(String name)
Deprecated
(since 5.2) Use
NamedQueryRepository#getResultSetMappingDefinition instead.
|
| public default String[] | |
| public default Type[] | |
| public ServiceRegistryImplementor | Returns: The factory's ServiceRegistryAccess to the ServiceRegistry for this SessionFactory. |
| public Settings | |
| public default SQLExceptionConverter | Returns: The SQLExceptionConverter for this SessionFactory.
Deprecated
since 5.0; use
Retrieves the SQLExceptionConverter in effect for this SessionFactory.
JdbcServices#getSqlExceptionHelper() ->
SqlExceptionHelper#getSqlExceptionConverter() instead as obtained from getServiceRegistry()
|
| public default SqlExceptionHelper | Returns: The SqlExceptionHelper for this SessionFactory.
Deprecated
since 5.0; use
Retrieves the SqlExceptionHelper in effect for this SessionFactory.
JdbcServices#getSqlExceptionHelper() instead as
obtained from getServiceRegistry()
|
| public SQLFunctionRegistry | |
| public SqlStringGenerationContext | |
| public StatisticsImplementor | getStatistics()
Redeclares org. |
| public default StatisticsImplementor | getStatisticsImplementor()
Deprecated
(since 5.2) Just use
getStatistics (with covariant return here as StatisticsImplementor).
|
| public TypeResolver | Returns: The type resolver
Deprecated
(since 5.2) No replacement, access to and handling of Types will be much different in 6.0
Retrieve the Type resolver associated with this factory.
|
| public String | |
| public default Iterable | iterateEntityNameResolvers()
Deprecated
(since 5.2) use
getMetamodel() -> MetamodelImplementor#getEntityNameResolvers()
|
| public default EntityPersister | locateEntityPersister(Class<T> byClass)
Deprecated
(since 5.2) Use
MetamodelImplementor#locateEntityPersister(Class) instead.
|
| public default EntityPersister | locateEntityPersister(String byName)
Deprecated
(since 5.2) Use
MetamodelImplementor#locateEntityPersister(String) instead.
|
| public Session | openTemporarySession()
Deprecated
as a consequence of
Get a non-transactional "current" session (used by hibernate-envers)
Session being deprecated.
|
| public default void | registerNamedQueryDefinition(String name, NamedQueryDefinition definition)
Deprecated
(since 5.2) Use
NamedQueryRepository#registerNamedQueryDefinition instead.
|
| public default void | registerNamedSQLQueryDefinition(String name, NamedSQLQueryDefinition definition)
Deprecated
(since 5.2) Use
NamedQueryRepository#registerNamedSQLQueryDefinition instead.
|
| public SessionBuilderImplementor |
| addObserver | back to summary |
|---|---|
| public void addObserver(SessionFactoryObserver observer) | |
| findEntityGraphByName | back to summary |
|---|---|
| public RootGraphImplementor | |
| findEntityGraphsByJavaType | back to summary |
|---|---|
| public <T> List | |
| findEntityGraphsByType | back to summary |
|---|---|
| public default <T> List Implements org. Doc from org. Find all
| |
| getCache | back to summary |
|---|---|
| public CacheImplementor getCache() Redeclares org. Doc from org. Deprecated as a consequence of Obtain direct access to the underlying cache regions.
| |
| getCollectionPersister | back to summary |
|---|---|
| public default CollectionPersister getCollectionPersister(String role) throws MappingException
Deprecated (since 5.2) Use
| |
| getCollectionPersisters | back to summary |
|---|---|
| public default Map Deprecated (since 5.2) Use
| |
| getCollectionRolesByEntityParticipant | back to summary |
|---|---|
| public default Set Deprecated (since 5.2) Use | |
| getCurrentTenantIdentifierResolver | back to summary |
|---|---|
| public CurrentTenantIdentifierResolver getCurrentTenantIdentifierResolver() | |
| getCustomEntityDirtinessStrategy | back to summary |
|---|---|
| public CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy() | |
| getDeserializationResolver | back to summary |
|---|---|
| public SessionFactoryImplementor. | |
| getDialect | back to summary |
|---|---|
| public default Dialect getDialect()
Deprecated (since 5.2) instead, use Get the SQL dialect.
Shorthand for
| |
| getEntityNotFoundDelegate | back to summary |
|---|---|
| public EntityNotFoundDelegate getEntityNotFoundDelegate() | |
| getEntityPersister | back to summary |
|---|---|
| public default EntityPersister getEntityPersister(String entityName) throws MappingException
Deprecated (since 5.2) Use
| |
| getEntityPersisters | back to summary |
|---|---|
| public default Map Deprecated (since 5.2) Use
| |
| getEventEngine | back to summary |
|---|---|
| public EventEngine getEventEngine() Get the EventEngine associated with this SessionFactory | |
| getFastSessionServices | back to summary |
|---|---|
public FastSessionServices getFastSessionServices()
| |
| getFetchProfile | back to summary |
|---|---|
| public FetchProfile getFetchProfile(String name) Retrieve fetch profile by name.
| |
| getIdentifierGenerator | back to summary |
|---|---|
| public IdentifierGenerator getIdentifierGenerator(String rootEntityName)
Deprecated as a consequence of Get the identifier generator for the hierarchy | |
| getImplementors | back to summary |
|---|---|
| public default String[] getImplementors(String entityName)
Deprecated Use Get the names of all persistent classes that implement/extend the given interface/class
| |
| getImportedClassName | back to summary |
|---|---|
| public default String getImportedClassName(String name)
Deprecated Use Get a class name, using query language imports
| |
| getInterceptor | back to summary |
|---|---|
| public Interceptor getInterceptor()
Deprecated (since 5.2) if access to the SessionFactory-scoped Interceptor is needed, use
Get the factory scoped interceptor for this factory.
| |
| getJdbcServices | back to summary |
|---|---|
| public JdbcServices getJdbcServices() Get the JdbcServices.
| |
| getMetamodel | back to summary |
|---|---|
| public MetamodelImplementor getMetamodel() Redeclares javax. Doc from javax. Return an instance of
| |
| getName | back to summary |
|---|---|
| public String getName() Access to the name (if one) assigned to the SessionFactory
| |
| getNamedQuery | back to summary |
|---|---|
| public default NamedQueryDefinition getNamedQuery(String queryName)
Deprecated (since 5.2) Use
| |
| getNamedQueryRepository | back to summary |
|---|---|
| public NamedQueryRepository getNamedQueryRepository()
Deprecated (since 5.2) it will be replaced with the new QueryEngine concept introduced in 6.0 Provides access to the named query repository
| |
| getNamedSQLQuery | back to summary |
|---|---|
| public default NamedSQLQueryDefinition getNamedSQLQuery(String queryName)
Deprecated (since 5.2) Use
| |
| getQueryPlanCache | back to summary |
|---|---|
| public QueryPlanCache getQueryPlanCache()
Deprecated (since 5.2) it will be replaced with the new QueryEngine concept introduced in 6.0 Access to the caches of HQL/JPQL and native query plans.
| |
| getResultSetMapping | back to summary |
|---|---|
| public default ResultSetMappingDefinition getResultSetMapping(String name)
Deprecated (since 5.2) Use
| |
| getReturnAliases | back to summary |
|---|---|
| public default String[] getReturnAliases(String queryString)
Deprecated No replacement. Get the return aliases of a query
| |
| getReturnTypes | back to summary |
|---|---|
| public default Type[] getReturnTypes(String queryString)
Deprecated No replacement. Get the return types of a query
| |
| getServiceRegistry | back to summary |
|---|---|
| public ServiceRegistryImplementor getServiceRegistry() Access to the ServiceRegistry for this SessionFactory.
| |
| getSettings | back to summary |
|---|---|
| public Settings getSettings()
Deprecated since 5.0; use
| |
| getSQLExceptionConverter | back to summary |
|---|---|
| public default SQLExceptionConverter getSQLExceptionConverter()
Deprecated since 5.0; use Retrieves the SQLExceptionConverter in effect for this SessionFactory.
| |
| getSQLExceptionHelper | back to summary |
|---|---|
| public default SqlExceptionHelper getSQLExceptionHelper()
Deprecated since 5.0; use Retrieves the SqlExceptionHelper in effect for this SessionFactory.
| |
| getSqlFunctionRegistry | back to summary |
|---|---|
| public SQLFunctionRegistry getSqlFunctionRegistry() | |
| getSqlStringGenerationContext | back to summary |
|---|---|
| public SqlStringGenerationContext getSqlStringGenerationContext() | |
| getStatistics | back to summary |
|---|---|
| public StatisticsImplementor getStatistics() Redeclares org. Doc from org. Retrieve the statistics for this factory.
| |
| getStatisticsImplementor | back to summary |
|---|---|
| public default StatisticsImplementor getStatisticsImplementor()
Deprecated (since 5.2) Just use
| |
| getTypeResolver | back to summary |
|---|---|
| public TypeResolver getTypeResolver()
Deprecated (since 5.2) No replacement, access to and handling of Types will be much different in 6.0 Retrieve the
| |
| getUuid | back to summary |
|---|---|
| public String getUuid() Get the UUID for this SessionFactory. The value is generated as a
| |
| iterateEntityNameResolvers | back to summary |
|---|---|
| public default Iterable Deprecated (since 5.2) use
| |
| locateEntityPersister | back to summary |
|---|---|
| public default EntityPersister locateEntityPersister(Class<T> byClass)
Deprecated (since 5.2) Use
| |
| locateEntityPersister | back to summary |
|---|---|
| public default EntityPersister locateEntityPersister(String byName)
Deprecated (since 5.2) Use
| |
| openTemporarySession | back to summary |
|---|---|
| public Session openTemporarySession() throws HibernateException
Deprecated as a consequence of Get a non-transactional "current" session (used by hibernate-envers) | |
| registerNamedQueryDefinition | back to summary |
|---|---|
| public default void registerNamedQueryDefinition(String name, NamedQueryDefinition definition)
Deprecated (since 5.2) Use
| |
| registerNamedSQLQueryDefinition | back to summary |
|---|---|
| public default void registerNamedSQLQueryDefinition(String name, NamedSQLQueryDefinition definition)
Deprecated (since 5.2) Use
| |
| withOptions | back to summary |
|---|---|
| public SessionBuilderImplementor Redeclares org. Doc from org. Obtain a
| |
| Modifier and Type | Method and Description |
|---|---|
| public T |
| resolve | back to summary |
|---|---|
| public T resolve() | |