Package org.hibernate.engine.spi
Class SessionFactoryDelegatingImpl
- java.lang.Object
-
- org.hibernate.engine.spi.SessionFactoryDelegatingImpl
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Serializable,java.lang.AutoCloseable,javax.naming.Referenceable,EntityManagerFactory,Mapping,SessionFactoryImplementor,HibernateEntityManagerFactory,QueryParameterBindingTypeResolver,SessionFactory
public class SessionFactoryDelegatingImpl extends java.lang.Object implements SessionFactoryImplementor, SessionFactory
Base delegating implementation of the SessionFactory and SessionFactoryImplementor contracts for intended for easier implementation of SessionFactory.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.engine.spi.SessionFactoryImplementor
SessionFactoryImplementor.DeserializationResolver<T extends SessionFactoryImplementor>
-
-
Constructor Summary
Constructors Constructor Description SessionFactoryDelegatingImpl(SessionFactoryImplementor delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> voidaddNamedEntityGraph(java.lang.String graphName, EntityGraph<T> entityGraph)voidaddNamedQuery(java.lang.String name, Query query)voidaddObserver(SessionFactoryObserver observer)voidclose()Destroy this SessionFactory and release all resources (caches, connection pools, etc).booleancontainsFetchProfileDefinition(java.lang.String name)Determine if this session factory contains a fetch profile definition registered under the given name.EntityManagercreateEntityManager()EntityManagercreateEntityManager(java.util.Map map)EntityManagercreateEntityManager(SynchronizationType synchronizationType)EntityManagercreateEntityManager(SynchronizationType synchronizationType, java.util.Map map)protected SessionFactoryImplementordelegate()RootGraphImplementorfindEntityGraphByName(java.lang.String name)<T> java.util.List<RootGraphImplementor<? super T>>findEntityGraphsByJavaType(java.lang.Class<T> entityClass)java.util.Map<java.lang.String,ClassMetadata>getAllClassMetadata()Retrieve theClassMetadatafor all mapped entities.java.util.MapgetAllCollectionMetadata()Get theCollectionMetadatafor all mapped collections.CacheImplementorgetCache()Obtain direct access to the underlying cache regions.ClassMetadatagetClassMetadata(java.lang.Class entityClass)Retrieve theClassMetadataassociated with the given entity class.ClassMetadatagetClassMetadata(java.lang.String entityName)Retrieve theClassMetadataassociated with the given entity class.CollectionMetadatagetCollectionMetadata(java.lang.String roleName)Get theCollectionMetadataassociated with the named collection role.CollectionPersistergetCollectionPersister(java.lang.String role)java.util.Map<java.lang.String,CollectionPersister>getCollectionPersisters()java.util.Set<java.lang.String>getCollectionRolesByEntityParticipant(java.lang.String entityName)CriteriaBuildergetCriteriaBuilder()SessiongetCurrentSession()Obtains the current session.CurrentTenantIdentifierResolvergetCurrentTenantIdentifierResolver()CustomEntityDirtinessStrategygetCustomEntityDirtinessStrategy()java.util.SetgetDefinedFilterNames()Obtain a set of the names of all filters defined on this SessionFactory.SessionFactoryImplementor.DeserializationResolvergetDeserializationResolver()DialectgetDialect()Get the SQL dialect.EntityNotFoundDelegategetEntityNotFoundDelegate()EntityPersistergetEntityPersister(java.lang.String entityName)java.util.Map<java.lang.String,EntityPersister>getEntityPersisters()EventEnginegetEventEngine()Get the EventEngine associated with this SessionFactoryorg.hibernate.internal.FastSessionServicesgetFastSessionServices()FetchProfilegetFetchProfile(java.lang.String name)Retrieve fetch profile by name.FilterDefinitiongetFilterDefinition(java.lang.String filterName)Obtain the definition of a filter by name.IdentifierGeneratorgetIdentifierGenerator(java.lang.String rootEntityName)Get the identifier generator for the hierarchyIdentifierGeneratorFactorygetIdentifierGeneratorFactory()Allow access to the id generator factory, though this is only needed/allowed from configuration.java.lang.StringgetIdentifierPropertyName(java.lang.String className)TypegetIdentifierType(java.lang.String className)java.lang.String[]getImplementors(java.lang.String className)Get the names of all persistent classes that implement/extend the given interface/classjava.lang.StringgetImportedClassName(java.lang.String name)Get a class name, using query language importsInterceptorgetInterceptor()Get the factory scoped interceptor for this factory.JdbcServicesgetJdbcServices()Get the JdbcServices.MetamodelImplementorgetMetamodel()java.lang.StringgetName()Access to the name (if one) assigned to the SessionFactoryNamedQueryDefinitiongetNamedQuery(java.lang.String queryName)NamedQueryRepositorygetNamedQueryRepository()Provides access to the named query repositoryNamedSQLQueryDefinitiongetNamedSQLQuery(java.lang.String queryName)PersistenceUnitUtilgetPersistenceUnitUtil()java.util.Map<java.lang.String,java.lang.Object>getProperties()QueryPlanCachegetQueryPlanCache()Access to the caches of HQL/JPQL and native query plans.javax.naming.ReferencegetReference()TypegetReferencedPropertyType(java.lang.String className, java.lang.String propertyName)ResultSetMappingDefinitiongetResultSetMapping(java.lang.String name)java.lang.String[]getReturnAliases(java.lang.String queryString)Get the return aliases of a queryType[]getReturnTypes(java.lang.String queryString)Get the return types of a queryServiceRegistryImplementorgetServiceRegistry()Access to the ServiceRegistry for this SessionFactory.SessionFactoryOptionsgetSessionFactoryOptions()Get the special options used to build the factory.SettingsgetSettings()SQLExceptionConvertergetSQLExceptionConverter()Retrieves the SQLExceptionConverter in effect for this SessionFactory.SqlExceptionHelpergetSQLExceptionHelper()Retrieves the SqlExceptionHelper in effect for this SessionFactory.SQLFunctionRegistrygetSqlFunctionRegistry()SqlStringGenerationContextgetSqlStringGenerationContext()StatisticsImplementorgetStatistics()Retrieve the statistics for this factory.StatisticsImplementorgetStatisticsImplementor()TypeHelpergetTypeHelper()Retrieve this factory'sTypeHelper.TypeResolvergetTypeResolver()Deprecated.(since 5.3) No replacement, access to and handling of Types will be much different in 6.0java.lang.StringgetUuid()Get the UUID for this SessionFactory.booleanisClosed()Is this factory already closed?booleanisOpen()java.lang.Iterable<EntityNameResolver>iterateEntityNameResolvers()EntityPersisterlocateEntityPersister(java.lang.Class byClass)EntityPersisterlocateEntityPersister(java.lang.String byName)SessionopenSession()Open aSession.StatelessSessionopenStatelessSession()Open a new stateless session.StatelessSessionopenStatelessSession(java.sql.Connection connection)Open a new stateless session, utilizing the specified JDBCConnection.SessionopenTemporarySession()Get a non-transactional "current" session (used by hibernate-envers)voidregisterNamedQueryDefinition(java.lang.String name, NamedQueryDefinition definition)voidregisterNamedSQLQueryDefinition(java.lang.String name, NamedSQLQueryDefinition definition)TyperesolveParameterBindType(java.lang.Class clazz)TyperesolveParameterBindType(java.lang.Object bindValue)<T> Tunwrap(java.lang.Class<T> cls)SessionBuilderImplementorwithOptions()Obtain aSessionbuilder.StatelessSessionBuilderwithStatelessOptions()Obtain aStatelessSessionbuilder.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.jpa.HibernateEntityManagerFactory
getEntityManagerFactoryName, getEntityTypeByName, getSessionFactory
-
Methods inherited from interface org.hibernate.engine.spi.SessionFactoryImplementor
findEntityGraphsByType
-
-
-
-
Constructor Detail
-
SessionFactoryDelegatingImpl
public SessionFactoryDelegatingImpl(SessionFactoryImplementor delegate)
-
-
Method Detail
-
delegate
protected SessionFactoryImplementor delegate()
-
getSessionFactoryOptions
public SessionFactoryOptions getSessionFactoryOptions()
Description copied from interface:SessionFactoryGet the special options used to build the factory.- Specified by:
getSessionFactoryOptionsin interfaceSessionFactory- Returns:
- The special options used to build the factory.
-
withOptions
public SessionBuilderImplementor withOptions()
Description copied from interface:SessionFactoryObtain aSessionbuilder.- Specified by:
withOptionsin interfaceSessionFactory- Specified by:
withOptionsin interfaceSessionFactoryImplementor- Returns:
- The session builder
-
openSession
public Session openSession() throws HibernateException
Description copied from interface:SessionFactoryOpen aSession. JDBCconnection(swill be obtained from the configuredConnectionProvideras needed to perform requested work.- Specified by:
openSessionin interfaceSessionFactory- Returns:
- The created session.
- Throws:
HibernateException- Indicates a problem opening the session; pretty rare here.
-
getCurrentSession
public Session getCurrentSession() throws HibernateException
Description copied from interface:SessionFactoryObtains the current session. The definition of what exactly "current" means controlled by theCurrentSessionContextimpl configured for use. Note that for backwards compatibility, if aCurrentSessionContextis not configured but JTA is configured this will default to theJTASessionContextimpl.- Specified by:
getCurrentSessionin interfaceSessionFactory- Returns:
- The current session.
- Throws:
HibernateException- Indicates an issue locating a suitable current session.
-
withStatelessOptions
public StatelessSessionBuilder withStatelessOptions()
Description copied from interface:SessionFactoryObtain aStatelessSessionbuilder.- Specified by:
withStatelessOptionsin interfaceSessionFactory- Returns:
- The stateless session builder
-
openStatelessSession
public StatelessSession openStatelessSession()
Description copied from interface:SessionFactoryOpen a new stateless session.- Specified by:
openStatelessSessionin interfaceSessionFactory- Returns:
- The created stateless session.
-
openStatelessSession
public StatelessSession openStatelessSession(java.sql.Connection connection)
Description copied from interface:SessionFactoryOpen a new stateless session, utilizing the specified JDBCConnection.- Specified by:
openStatelessSessionin interfaceSessionFactory- Parameters:
connection- Connection provided by the application.- Returns:
- The created stateless session.
-
getClassMetadata
public ClassMetadata getClassMetadata(java.lang.Class entityClass)
Description copied from interface:SessionFactoryRetrieve theClassMetadataassociated with the given entity class.- Specified by:
getClassMetadatain interfaceSessionFactory- Parameters:
entityClass- The entity class- Returns:
- The metadata associated with the given entity; may be null if no such entity was mapped.
-
getClassMetadata
public ClassMetadata getClassMetadata(java.lang.String entityName)
Description copied from interface:SessionFactoryRetrieve theClassMetadataassociated with the given entity class.- Specified by:
getClassMetadatain interfaceSessionFactory- Parameters:
entityName- The entity class- Returns:
- The metadata associated with the given entity; may be null if no such entity was mapped.
-
getCollectionMetadata
public CollectionMetadata getCollectionMetadata(java.lang.String roleName)
Description copied from interface:SessionFactoryGet theCollectionMetadataassociated with the named collection role.- Specified by:
getCollectionMetadatain interfaceSessionFactory- Parameters:
roleName- The collection role (in form [owning-entity-name].[collection-property-name]).- Returns:
- The metadata associated with the given collection; may be null if no such collection was mapped.
-
getAllClassMetadata
public java.util.Map<java.lang.String,ClassMetadata> getAllClassMetadata()
Description copied from interface:SessionFactoryRetrieve theClassMetadatafor all mapped entities.- Specified by:
getAllClassMetadatain interfaceSessionFactory- Returns:
- A map containing all
ClassMetadatakeyed by the correspondingStringentity-name.
-
getAllCollectionMetadata
public java.util.Map getAllCollectionMetadata()
Description copied from interface:SessionFactoryGet theCollectionMetadatafor all mapped collections.- Specified by:
getAllCollectionMetadatain interfaceSessionFactory- Returns:
- a map from String to CollectionMetadata
-
getStatistics
public StatisticsImplementor getStatistics()
Description copied from interface:SessionFactoryRetrieve the statistics for this factory.- Specified by:
getStatisticsin interfaceSessionFactory- Specified by:
getStatisticsin interfaceSessionFactoryImplementor- Returns:
- The statistics.
-
getEventEngine
public EventEngine getEventEngine()
Description copied from interface:SessionFactoryImplementorGet the EventEngine associated with this SessionFactory- Specified by:
getEventEnginein interfaceSessionFactoryImplementor
-
close
public void close() throws HibernateExceptionDescription copied from interface:SessionFactoryDestroy this SessionFactory and release all resources (caches, connection pools, etc). It is the responsibility of the application to ensure that there are no opensessionsbefore calling this method as the impact on thosesessionsis indeterminate. No-ops if alreadyclosed.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceEntityManagerFactory- Specified by:
closein interfaceSessionFactory- Throws:
HibernateException- Indicates an issue closing the factory.
-
isClosed
public boolean isClosed()
Description copied from interface:SessionFactoryIs this factory already closed?- Specified by:
isClosedin interfaceSessionFactory- Returns:
- True if this factory is already closed; false otherwise.
-
getCache
public CacheImplementor getCache()
Description copied from interface:SessionFactoryObtain direct access to the underlying cache regions.- Specified by:
getCachein interfaceEntityManagerFactory- Specified by:
getCachein interfaceSessionFactory- Specified by:
getCachein interfaceSessionFactoryImplementor- Returns:
- The direct cache access API.
-
getPersistenceUnitUtil
public PersistenceUnitUtil getPersistenceUnitUtil()
- Specified by:
getPersistenceUnitUtilin interfaceEntityManagerFactory
-
addNamedQuery
public void addNamedQuery(java.lang.String name, Query query)- Specified by:
addNamedQueryin interfaceEntityManagerFactory
-
unwrap
public <T> T unwrap(java.lang.Class<T> cls)
- Specified by:
unwrapin interfaceEntityManagerFactory
-
addNamedEntityGraph
public <T> void addNamedEntityGraph(java.lang.String graphName, EntityGraph<T> entityGraph)- Specified by:
addNamedEntityGraphin interfaceEntityManagerFactory
-
getDefinedFilterNames
public java.util.Set getDefinedFilterNames()
Description copied from interface:SessionFactoryObtain a set of the names of all filters defined on this SessionFactory.- Specified by:
getDefinedFilterNamesin interfaceSessionFactory- Returns:
- The set of filter names.
-
getFilterDefinition
public FilterDefinition getFilterDefinition(java.lang.String filterName) throws HibernateException
Description copied from interface:SessionFactoryObtain the definition of a filter by name.- Specified by:
getFilterDefinitionin interfaceSessionFactory- Parameters:
filterName- The name of the filter for which to obtain the definition.- Returns:
- The filter definition.
- Throws:
HibernateException- If no filter defined with the given name.
-
containsFetchProfileDefinition
public boolean containsFetchProfileDefinition(java.lang.String name)
Description copied from interface:SessionFactoryDetermine if this session factory contains a fetch profile definition registered under the given name.- Specified by:
containsFetchProfileDefinitionin interfaceSessionFactory- Parameters:
name- The name to check- Returns:
- True if there is such a fetch profile; false otherwise.
-
getTypeHelper
public TypeHelper getTypeHelper()
Description copied from interface:SessionFactoryRetrieve this factory'sTypeHelper.- Specified by:
getTypeHelperin interfaceSessionFactory- Returns:
- The factory's
TypeHelper
-
getTypeResolver
@Deprecated public TypeResolver getTypeResolver()
Deprecated.(since 5.3) No replacement, access to and handling of Types will be much different in 6.0Retrieve theTyperesolver associated with this factory.- Specified by:
getTypeResolverin interfaceSessionFactoryImplementor- Returns:
- The type resolver
-
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
- Specified by:
getPropertiesin interfaceEntityManagerFactory
-
getEntityPersister
public EntityPersister getEntityPersister(java.lang.String entityName) throws MappingException
- Specified by:
getEntityPersisterin interfaceSessionFactoryImplementor- Throws:
MappingException
-
getEntityPersisters
public java.util.Map<java.lang.String,EntityPersister> getEntityPersisters()
- Specified by:
getEntityPersistersin interfaceSessionFactoryImplementor
-
getCollectionPersister
public CollectionPersister getCollectionPersister(java.lang.String role) throws MappingException
- Specified by:
getCollectionPersisterin interfaceSessionFactoryImplementor- Throws:
MappingException
-
getCollectionPersisters
public java.util.Map<java.lang.String,CollectionPersister> getCollectionPersisters()
- Specified by:
getCollectionPersistersin interfaceSessionFactoryImplementor
-
getJdbcServices
public JdbcServices getJdbcServices()
Description copied from interface:SessionFactoryImplementorGet the JdbcServices.- Specified by:
getJdbcServicesin interfaceSessionFactoryImplementor- Returns:
- the JdbcServices
-
getSqlStringGenerationContext
public SqlStringGenerationContext getSqlStringGenerationContext()
- Specified by:
getSqlStringGenerationContextin interfaceSessionFactoryImplementor
-
getDialect
public Dialect getDialect()
Description copied from interface:SessionFactoryImplementorGet the SQL dialect. Shorthand forgetJdbcServices().getDialect()- Specified by:
getDialectin interfaceSessionFactoryImplementor- Returns:
- The dialect
-
getInterceptor
public Interceptor getInterceptor()
Description copied from interface:SessionFactoryImplementorGet the factory scoped interceptor for this factory.- Specified by:
getInterceptorin interfaceSessionFactoryImplementor- Returns:
- The factory scope interceptor, or null if none.
-
getQueryPlanCache
public QueryPlanCache getQueryPlanCache()
Description copied from interface:SessionFactoryImplementorAccess to the caches of HQL/JPQL and native query plans.- Specified by:
getQueryPlanCachein interfaceSessionFactoryImplementor- Returns:
- The query plan cache
-
getReturnTypes
public Type[] getReturnTypes(java.lang.String queryString) throws HibernateException
Description copied from interface:SessionFactoryImplementorGet the return types of a query- Specified by:
getReturnTypesin interfaceSessionFactoryImplementor- Throws:
HibernateException
-
getReturnAliases
public java.lang.String[] getReturnAliases(java.lang.String queryString) throws HibernateExceptionDescription copied from interface:SessionFactoryImplementorGet the return aliases of a query- Specified by:
getReturnAliasesin interfaceSessionFactoryImplementor- Throws:
HibernateException
-
getImplementors
public java.lang.String[] getImplementors(java.lang.String className) throws MappingExceptionDescription copied from interface:SessionFactoryImplementorGet the names of all persistent classes that implement/extend the given interface/class- Specified by:
getImplementorsin interfaceSessionFactoryImplementor- Throws:
MappingException
-
getImportedClassName
public java.lang.String getImportedClassName(java.lang.String name)
Description copied from interface:SessionFactoryImplementorGet a class name, using query language imports- Specified by:
getImportedClassNamein interfaceSessionFactoryImplementor
-
findEntityGraphByName
public RootGraphImplementor findEntityGraphByName(java.lang.String name)
- Specified by:
findEntityGraphByNamein interfaceSessionFactoryImplementor
-
getStatisticsImplementor
public StatisticsImplementor getStatisticsImplementor()
- Specified by:
getStatisticsImplementorin interfaceSessionFactoryImplementor
-
getNamedQuery
public NamedQueryDefinition getNamedQuery(java.lang.String queryName)
- Specified by:
getNamedQueryin interfaceSessionFactoryImplementor
-
registerNamedQueryDefinition
public void registerNamedQueryDefinition(java.lang.String name, NamedQueryDefinition definition)- Specified by:
registerNamedQueryDefinitionin interfaceSessionFactoryImplementor
-
getNamedSQLQuery
public NamedSQLQueryDefinition getNamedSQLQuery(java.lang.String queryName)
- Specified by:
getNamedSQLQueryin interfaceSessionFactoryImplementor
-
registerNamedSQLQueryDefinition
public void registerNamedSQLQueryDefinition(java.lang.String name, NamedSQLQueryDefinition definition)- Specified by:
registerNamedSQLQueryDefinitionin interfaceSessionFactoryImplementor
-
getResultSetMapping
public ResultSetMappingDefinition getResultSetMapping(java.lang.String name)
- Specified by:
getResultSetMappingin interfaceSessionFactoryImplementor
-
getIdentifierGenerator
public IdentifierGenerator getIdentifierGenerator(java.lang.String rootEntityName)
Description copied from interface:SessionFactoryImplementorGet the identifier generator for the hierarchy- Specified by:
getIdentifierGeneratorin interfaceSessionFactoryImplementor
-
getSQLExceptionConverter
public SQLExceptionConverter getSQLExceptionConverter()
Description copied from interface:SessionFactoryImplementorRetrieves the SQLExceptionConverter in effect for this SessionFactory.- Specified by:
getSQLExceptionConverterin interfaceSessionFactoryImplementor- Returns:
- The SQLExceptionConverter for this SessionFactory.
-
getSQLExceptionHelper
public SqlExceptionHelper getSQLExceptionHelper()
Description copied from interface:SessionFactoryImplementorRetrieves the SqlExceptionHelper in effect for this SessionFactory.- Specified by:
getSQLExceptionHelperin interfaceSessionFactoryImplementor- Returns:
- The SqlExceptionHelper for this SessionFactory.
-
getSettings
public Settings getSettings()
- Specified by:
getSettingsin interfaceSessionFactoryImplementor
-
openTemporarySession
public Session openTemporarySession() throws HibernateException
Description copied from interface:SessionFactoryImplementorGet a non-transactional "current" session (used by hibernate-envers)- Specified by:
openTemporarySessionin interfaceSessionFactoryImplementor- Throws:
HibernateException
-
getCollectionRolesByEntityParticipant
public java.util.Set<java.lang.String> getCollectionRolesByEntityParticipant(java.lang.String entityName)
- Specified by:
getCollectionRolesByEntityParticipantin interfaceSessionFactoryImplementor- Parameters:
entityName- The entity name for which to get the collection roles.- Returns:
- set of all the collection roles in which the given entityName participates.
-
getEntityNotFoundDelegate
public EntityNotFoundDelegate getEntityNotFoundDelegate()
- Specified by:
getEntityNotFoundDelegatein interfaceSessionFactoryImplementor
-
getSqlFunctionRegistry
public SQLFunctionRegistry getSqlFunctionRegistry()
- Specified by:
getSqlFunctionRegistryin interfaceSessionFactoryImplementor
-
getFetchProfile
public FetchProfile getFetchProfile(java.lang.String name)
Description copied from interface:SessionFactoryImplementorRetrieve fetch profile by name.- Specified by:
getFetchProfilein interfaceSessionFactoryImplementor- Parameters:
name- The name of the profile to retrieve.- Returns:
- The profile definition
-
getServiceRegistry
public ServiceRegistryImplementor getServiceRegistry()
Description copied from interface:SessionFactoryImplementorAccess to the ServiceRegistry for this SessionFactory.- Specified by:
getServiceRegistryin interfaceSessionFactoryImplementor- Returns:
- The factory's ServiceRegistry
-
addObserver
public void addObserver(SessionFactoryObserver observer)
- Specified by:
addObserverin interfaceSessionFactoryImplementor
-
getCustomEntityDirtinessStrategy
public CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy()
- Specified by:
getCustomEntityDirtinessStrategyin interfaceSessionFactoryImplementor
-
getCurrentTenantIdentifierResolver
public CurrentTenantIdentifierResolver getCurrentTenantIdentifierResolver()
- Specified by:
getCurrentTenantIdentifierResolverin interfaceSessionFactoryImplementor
-
getNamedQueryRepository
public NamedQueryRepository getNamedQueryRepository()
Description copied from interface:SessionFactoryImplementorProvides access to the named query repository- Specified by:
getNamedQueryRepositoryin interfaceSessionFactoryImplementor- Returns:
- The repository for named query definitions
-
iterateEntityNameResolvers
public java.lang.Iterable<EntityNameResolver> iterateEntityNameResolvers()
- Specified by:
iterateEntityNameResolversin interfaceSessionFactoryImplementor
-
getFastSessionServices
public org.hibernate.internal.FastSessionServices getFastSessionServices()
- Specified by:
getFastSessionServicesin interfaceSessionFactoryImplementor- Returns:
- the FastSessionServices instance associated with this SessionFactory
-
locateEntityPersister
public EntityPersister locateEntityPersister(java.lang.Class byClass)
- Specified by:
locateEntityPersisterin interfaceSessionFactoryImplementor
-
locateEntityPersister
public EntityPersister locateEntityPersister(java.lang.String byName)
- Specified by:
locateEntityPersisterin interfaceSessionFactoryImplementor
-
getDeserializationResolver
public SessionFactoryImplementor.DeserializationResolver getDeserializationResolver()
- Specified by:
getDeserializationResolverin interfaceSessionFactoryImplementor
-
getIdentifierGeneratorFactory
public IdentifierGeneratorFactory getIdentifierGeneratorFactory()
Description copied from interface:MappingAllow access to the id generator factory, though this is only needed/allowed from configuration.- Specified by:
getIdentifierGeneratorFactoryin interfaceMapping- Returns:
- Access to the identifier generator factory
-
getIdentifierType
public Type getIdentifierType(java.lang.String className) throws MappingException
- Specified by:
getIdentifierTypein interfaceMapping- Throws:
MappingException
-
getIdentifierPropertyName
public java.lang.String getIdentifierPropertyName(java.lang.String className) throws MappingException- Specified by:
getIdentifierPropertyNamein interfaceMapping- Throws:
MappingException
-
getReferencedPropertyType
public Type getReferencedPropertyType(java.lang.String className, java.lang.String propertyName) throws MappingException
- Specified by:
getReferencedPropertyTypein interfaceMapping- Throws:
MappingException
-
getUuid
public java.lang.String getUuid()
Description copied from interface:SessionFactoryImplementorGet the UUID for this SessionFactory. The value is generated as aUUID, but kept as a String.- Specified by:
getUuidin interfaceSessionFactoryImplementor- Returns:
- The UUID for this SessionFactory.
- See Also:
SessionFactoryRegistry.getSessionFactory(java.lang.String)
-
getName
public java.lang.String getName()
Description copied from interface:SessionFactoryImplementorAccess to the name (if one) assigned to the SessionFactory- Specified by:
getNamein interfaceSessionFactoryImplementor- Returns:
- The name for the SessionFactory
-
getReference
public javax.naming.Reference getReference() throws javax.naming.NamingException- Specified by:
getReferencein interfacejavax.naming.Referenceable- Throws:
javax.naming.NamingException
-
findEntityGraphsByJavaType
public <T> java.util.List<RootGraphImplementor<? super T>> findEntityGraphsByJavaType(java.lang.Class<T> entityClass)
- Specified by:
findEntityGraphsByJavaTypein interfaceSessionFactoryImplementor
-
createEntityManager
public EntityManager createEntityManager()
- Specified by:
createEntityManagerin interfaceEntityManagerFactory
-
createEntityManager
public EntityManager createEntityManager(java.util.Map map)
- Specified by:
createEntityManagerin interfaceEntityManagerFactory
-
createEntityManager
public EntityManager createEntityManager(SynchronizationType synchronizationType)
- Specified by:
createEntityManagerin interfaceEntityManagerFactory
-
createEntityManager
public EntityManager createEntityManager(SynchronizationType synchronizationType, java.util.Map map)
- Specified by:
createEntityManagerin interfaceEntityManagerFactory
-
getCriteriaBuilder
public CriteriaBuilder getCriteriaBuilder()
- Specified by:
getCriteriaBuilderin interfaceEntityManagerFactory
-
getMetamodel
public MetamodelImplementor getMetamodel()
- Specified by:
getMetamodelin interfaceEntityManagerFactory- Specified by:
getMetamodelin interfaceHibernateEntityManagerFactory- Specified by:
getMetamodelin interfaceSessionFactoryImplementor
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceEntityManagerFactory
-
resolveParameterBindType
public Type resolveParameterBindType(java.lang.Object bindValue)
- Specified by:
resolveParameterBindTypein interfaceQueryParameterBindingTypeResolver
-
resolveParameterBindType
public Type resolveParameterBindType(java.lang.Class clazz)
- Specified by:
resolveParameterBindTypein interfaceQueryParameterBindingTypeResolver
-
-