public interface SessionFactoryImplementor extends Mapping, SessionFactory, QueryParameterBindingTypeResolver
Defines the internal contract between the <tt>SessionFactory</tt> and other parts of Hibernate such as implementors of <tt>Type</tt>.
SessionFactory
,
SessionFactoryImpl
Modifier and Type | Interface and Description |
---|---|
static interface |
SessionFactoryImplementor.DeserializationResolver<T extends SessionFactoryImplementor>
Contract for resolving this SessionFactory on deserialization
|
getIdentifierGeneratorFactory, getIdentifierPropertyName, getIdentifierType, getReferencedPropertyType
close, containsFetchProfileDefinition, getAllClassMetadata, getAllCollectionMetadata, getClassMetadata, getClassMetadata, getCollectionMetadata, getCurrentSession, getDefinedFilterNames, getFilterDefinition, getSessionFactoryOptions, getTypeHelper, isClosed, openSession, openStatelessSession, openStatelessSession, withStatelessOptions
findEntityGraphsByType, getEntityManagerFactoryName, getEntityTypeByName, getSessionFactory
addNamedEntityGraph, addNamedQuery, createEntityManager, createEntityManager, createEntityManager, createEntityManager, getCriteriaBuilder, getPersistenceUnitUtil, getProperties, isOpen, unwrap
getReference
resolveParameterBindType, resolveParameterBindType
String getUuid()
Get the UUID for this SessionFactory. The value is generated as a UUID
, but kept
as a String.
SessionFactoryRegistry.getSessionFactory(java.lang.String)
String getName()
Access to the name (if one) assigned to the SessionFactory
SessionBuilderImplementor withOptions()
SessionFactory
Obtain a Session
builder.
withOptions
in interface SessionFactory
Session openTemporarySession() throws HibernateException
Get a non-transactional "current" session (used by hibernate-envers)
HibernateException
CacheImplementor getCache()
SessionFactory
Obtain direct access to the underlying cache regions.
getCache
in interface EntityManagerFactory
getCache
in interface SessionFactory
StatisticsImplementor getStatistics()
SessionFactory
Retrieve the statistics fopr this factory.
getStatistics
in interface SessionFactory
ServiceRegistryImplementor getServiceRegistry()
Access to the ServiceRegistry for this SessionFactory.
@Deprecated Interceptor getInterceptor()
SessionFactoryOptions.getInterceptor()
instead. However, generally speaking this access
is not needed.Get the factory scoped interceptor for this factory.
@Deprecated QueryPlanCache getQueryPlanCache()
Access to the cachres of HQL/JPQL and native query plans.
@Deprecated NamedQueryRepository getNamedQueryRepository()
Provides access to the named query repository
FetchProfile getFetchProfile(String name)
Retrieve fetch profile by name.
name
- The name of the profile to retrieve.@Deprecated TypeResolver getTypeResolver()
Retrieve the Type
resolver associated with this factory.
IdentifierGenerator getIdentifierGenerator(String rootEntityName)
Get the identifier generator for the hierarchy
EntityNotFoundDelegate getEntityNotFoundDelegate()
SQLFunctionRegistry getSqlFunctionRegistry()
void addObserver(SessionFactoryObserver observer)
CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy()
CurrentTenantIdentifierResolver getCurrentTenantIdentifierResolver()
@Deprecated default Iterable<EntityNameResolver> iterateEntityNameResolvers()
getMetamodel()
→ MetamodelImplementor.getEntityNameResolvers()
SessionFactoryImplementor.DeserializationResolver getDeserializationResolver()
@Deprecated default Type[] getReturnTypes(String queryString)
Get the return types of a query
@Deprecated default String[] getReturnAliases(String queryString)
Get the return aliases of a query
@Deprecated default StatisticsImplementor getStatisticsImplementor()
getStatistics()
(with covariant return here as StatisticsImplementor
).@Deprecated default NamedQueryDefinition getNamedQuery(String queryName)
NamedQueryRepository.getNamedQueryDefinition(java.lang.String)
instead.@Deprecated default void registerNamedQueryDefinition(String name, NamedQueryDefinition definition)
NamedQueryRepository.registerNamedQueryDefinition(java.lang.String, org.hibernate.engine.spi.NamedQueryDefinition)
instead.@Deprecated default NamedSQLQueryDefinition getNamedSQLQuery(String queryName)
NamedQueryRepository.getNamedSQLQueryDefinition(java.lang.String)
instead.@Deprecated default void registerNamedSQLQueryDefinition(String name, NamedSQLQueryDefinition definition)
NamedQueryRepository.registerNamedSQLQueryDefinition(java.lang.String, org.hibernate.engine.spi.NamedSQLQueryDefinition)
instead.@Deprecated default ResultSetMappingDefinition getResultSetMapping(String name)
NamedQueryRepository.getResultSetMappingDefinition(java.lang.String)
instead.JdbcServices getJdbcServices()
Get the JdbcServices.
@Deprecated default Dialect getDialect()
getServiceRegistry()
} →
JdbcServices.getDialect()
Get the SQL dialect.
<p/>
Shorthand for getJdbcServices().getDialect()
@Deprecated default SQLExceptionConverter getSQLExceptionConverter()
JdbcServices.getSqlExceptionHelper()
→
SqlExceptionHelper.getSqlExceptionConverter()
instead as obtained from getServiceRegistry()
Retrieves the SQLExceptionConverter in effect for this SessionFactory.
@Deprecated default SqlExceptionHelper getSQLExceptionHelper()
JdbcServices.getSqlExceptionHelper()
instead as
obtained from getServiceRegistry()
Retrieves the SqlExceptionHelper in effect for this SessionFactory.
@Deprecated Settings getSettings()
SessionFactory.getSessionFactoryOptions()
insteadMetamodelImplementor getMetamodel()
getMetamodel
in interface EntityManagerFactory
getMetamodel
in interface HibernateEntityManagerFactory
@Deprecated default EntityPersister getEntityPersister(String entityName) throws MappingException
MetamodelImplementor.entityPersister(Class)
instead.MappingException
@Deprecated default Map<String,EntityPersister> getEntityPersisters()
MetamodelImplementor.entityPersisters()
instead.@Deprecated default CollectionPersister getCollectionPersister(String role) throws MappingException
MetamodelImplementor.collectionPersister(String)
instead.MappingException
@Deprecated default Map<String,CollectionPersister> getCollectionPersisters()
MetamodelImplementor.collectionPersisters()
instead.@Deprecated default Set<String> getCollectionRolesByEntityParticipant(String entityName)
MetamodelImplementor.collectionPersisters()
instead.
Retrieves a set of all the collection roles in which the given entity
is a participant, as either an index or an element.entityName
- The entity name for which to get the collection roles.@Deprecated default EntityPersister locateEntityPersister(Class byClass)
MetamodelImplementor.locateEntityPersister(Class)
instead.@Deprecated default EntityPersister locateEntityPersister(String byName)
MetamodelImplementor.locateEntityPersister(String)
instead.@Deprecated default String[] getImplementors(String entityName)
Metamodel.getImplementors(java.lang.String)
insteadGet the names of all persistent classes that implement/extend the given interface/class
@Deprecated default String getImportedClassName(String name)
Metamodel.getImportedClassName(java.lang.String)
insteadGet a class name, using query language imports
EntityGraph findEntityGraphByName(String name)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.