public class SessionFactoryDelegatingImpl extends Object implements SessionFactoryImplementor, SessionFactory
SessionFactoryImplementor.DeserializationResolver<T extends SessionFactoryImplementor>| Constructor and Description |
|---|
SessionFactoryDelegatingImpl(SessionFactoryImplementor delegate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindEntityGraphsByTypegetEntityManagerFactoryName, getEntityTypeByName, getSessionFactorypublic SessionFactoryDelegatingImpl(SessionFactoryImplementor delegate)
protected SessionFactoryImplementor delegate()
public SessionFactoryOptions getSessionFactoryOptions()
SessionFactorygetSessionFactoryOptions in interface SessionFactorypublic SessionBuilderImplementor withOptions()
SessionFactorySession builder.withOptions in interface SessionFactoryImplementorwithOptions in interface SessionFactorypublic Session openSession() throws HibernateException
SessionFactorySession.
JDBC connection(s will be obtained from the
configured ConnectionProvider as needed
to perform requested work.openSession in interface SessionFactoryHibernateException - Indicates a problem opening the session; pretty rare here.public Session getCurrentSession() throws HibernateException
SessionFactoryCurrentSessionContext impl configured
for use.
Note that for backwards compatibility, if a CurrentSessionContext
is not configured but JTA is configured this will default to the org.hibernate.context.internal.JTASessionContext
impl.getCurrentSession in interface SessionFactoryHibernateException - Indicates an issue locating a suitable current session.public StatelessSessionBuilder withStatelessOptions()
SessionFactoryStatelessSession builder.withStatelessOptions in interface SessionFactorypublic StatelessSession openStatelessSession()
SessionFactoryopenStatelessSession in interface SessionFactorypublic StatelessSession openStatelessSession(Connection connection)
SessionFactoryConnection.openStatelessSession in interface SessionFactoryconnection - Connection provided by the application.public ClassMetadata getClassMetadata(Class entityClass)
SessionFactoryClassMetadata associated with the given entity class.getClassMetadata in interface SessionFactoryentityClass - The entity classpublic ClassMetadata getClassMetadata(String entityName)
SessionFactoryClassMetadata associated with the given entity class.getClassMetadata in interface SessionFactoryentityName - The entity classpublic CollectionMetadata getCollectionMetadata(String roleName)
SessionFactoryCollectionMetadata associated with the named collection role.getCollectionMetadata in interface SessionFactoryroleName - The collection role (in form [owning-entity-name].[collection-property-name]).public Map<String,ClassMetadata> getAllClassMetadata()
SessionFactoryClassMetadata for all mapped entities.getAllClassMetadata in interface SessionFactoryClassMetadata keyed by the
corresponding String entity-name.public Map getAllCollectionMetadata()
SessionFactoryCollectionMetadata for all mapped collections.getAllCollectionMetadata in interface SessionFactorypublic StatisticsImplementor getStatistics()
SessionFactorygetStatistics in interface SessionFactoryImplementorgetStatistics in interface SessionFactorypublic void close()
throws HibernateException
SessionFactorysessions before calling this method as the impact
on those sessions is indeterminate.
No-ops if already closed.close in interface Closeableclose in interface AutoCloseableclose in interface EntityManagerFactoryclose in interface SessionFactoryHibernateException - Indicates an issue closing the factory.public boolean isClosed()
SessionFactoryisClosed in interface SessionFactorypublic CacheImplementor getCache()
SessionFactorygetCache in interface EntityManagerFactorygetCache in interface SessionFactoryImplementorgetCache in interface SessionFactorypublic PersistenceUnitUtil getPersistenceUnitUtil()
getPersistenceUnitUtil in interface EntityManagerFactorypublic void addNamedQuery(String name, Query query)
addNamedQuery in interface EntityManagerFactorypublic <T> T unwrap(Class<T> cls)
unwrap in interface EntityManagerFactorypublic <T> void addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph)
addNamedEntityGraph in interface EntityManagerFactorypublic Set getDefinedFilterNames()
SessionFactorygetDefinedFilterNames in interface SessionFactorypublic FilterDefinition getFilterDefinition(String filterName) throws HibernateException
SessionFactorygetFilterDefinition in interface SessionFactoryfilterName - The name of the filter for which to obtain the definition.HibernateException - If no filter defined with the given name.public boolean containsFetchProfileDefinition(String name)
SessionFactorycontainsFetchProfileDefinition in interface SessionFactoryname - The name to checkpublic TypeHelper getTypeHelper()
SessionFactoryTypeHelper.getTypeHelper in interface SessionFactoryTypeHelper@Deprecated public TypeResolver getTypeResolver()
Type resolver associated with this factory.getTypeResolver in interface SessionFactoryImplementorpublic Map<String,Object> getProperties()
getProperties in interface EntityManagerFactorypublic EntityPersister getEntityPersister(String entityName) throws MappingException
getEntityPersister in interface SessionFactoryImplementorMappingExceptionpublic Map<String,EntityPersister> getEntityPersisters()
getEntityPersisters in interface SessionFactoryImplementorpublic CollectionPersister getCollectionPersister(String role) throws MappingException
getCollectionPersister in interface SessionFactoryImplementorMappingExceptionpublic Map<String,CollectionPersister> getCollectionPersisters()
getCollectionPersisters in interface SessionFactoryImplementorpublic JdbcServices getJdbcServices()
SessionFactoryImplementorgetJdbcServices in interface SessionFactoryImplementorpublic Dialect getDialect()
SessionFactoryImplementorgetJdbcServices().getDialect()getDialect in interface SessionFactoryImplementorpublic Interceptor getInterceptor()
SessionFactoryImplementorgetInterceptor in interface SessionFactoryImplementorpublic QueryPlanCache getQueryPlanCache()
SessionFactoryImplementorgetQueryPlanCache in interface SessionFactoryImplementorpublic Type[] getReturnTypes(String queryString) throws HibernateException
SessionFactoryImplementorgetReturnTypes in interface SessionFactoryImplementorHibernateExceptionpublic String[] getReturnAliases(String queryString) throws HibernateException
SessionFactoryImplementorgetReturnAliases in interface SessionFactoryImplementorHibernateExceptionpublic String[] getImplementors(String className) throws MappingException
SessionFactoryImplementorgetImplementors in interface SessionFactoryImplementorMappingExceptionpublic String getImportedClassName(String name)
SessionFactoryImplementorgetImportedClassName in interface SessionFactoryImplementorpublic RootGraphImplementor findEntityGraphByName(String name)
findEntityGraphByName in interface SessionFactoryImplementorpublic StatisticsImplementor getStatisticsImplementor()
getStatisticsImplementor in interface SessionFactoryImplementorpublic NamedQueryDefinition getNamedQuery(String queryName)
getNamedQuery in interface SessionFactoryImplementorpublic void registerNamedQueryDefinition(String name, NamedQueryDefinition definition)
registerNamedQueryDefinition in interface SessionFactoryImplementorpublic NamedSQLQueryDefinition getNamedSQLQuery(String queryName)
getNamedSQLQuery in interface SessionFactoryImplementorpublic void registerNamedSQLQueryDefinition(String name, NamedSQLQueryDefinition definition)
registerNamedSQLQueryDefinition in interface SessionFactoryImplementorpublic ResultSetMappingDefinition getResultSetMapping(String name)
getResultSetMapping in interface SessionFactoryImplementorpublic IdentifierGenerator getIdentifierGenerator(String rootEntityName)
SessionFactoryImplementorgetIdentifierGenerator in interface SessionFactoryImplementorpublic SQLExceptionConverter getSQLExceptionConverter()
SessionFactoryImplementorgetSQLExceptionConverter in interface SessionFactoryImplementorpublic SqlExceptionHelper getSQLExceptionHelper()
SessionFactoryImplementorgetSQLExceptionHelper in interface SessionFactoryImplementorpublic Settings getSettings()
getSettings in interface SessionFactoryImplementorpublic Session openTemporarySession() throws HibernateException
SessionFactoryImplementoropenTemporarySession in interface SessionFactoryImplementorHibernateExceptionpublic Set<String> getCollectionRolesByEntityParticipant(String entityName)
getCollectionRolesByEntityParticipant in interface SessionFactoryImplementorentityName - The entity name for which to get the collection roles.public EntityNotFoundDelegate getEntityNotFoundDelegate()
getEntityNotFoundDelegate in interface SessionFactoryImplementorpublic SQLFunctionRegistry getSqlFunctionRegistry()
getSqlFunctionRegistry in interface SessionFactoryImplementorpublic FetchProfile getFetchProfile(String name)
SessionFactoryImplementorgetFetchProfile in interface SessionFactoryImplementorname - The name of the profile to retrieve.public ServiceRegistryImplementor getServiceRegistry()
SessionFactoryImplementorgetServiceRegistry in interface SessionFactoryImplementorpublic void addObserver(SessionFactoryObserver observer)
addObserver in interface SessionFactoryImplementorpublic CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy()
getCustomEntityDirtinessStrategy in interface SessionFactoryImplementorpublic CurrentTenantIdentifierResolver getCurrentTenantIdentifierResolver()
getCurrentTenantIdentifierResolver in interface SessionFactoryImplementorpublic NamedQueryRepository getNamedQueryRepository()
SessionFactoryImplementorgetNamedQueryRepository in interface SessionFactoryImplementorpublic Iterable<EntityNameResolver> iterateEntityNameResolvers()
iterateEntityNameResolvers in interface SessionFactoryImplementorpublic org.hibernate.internal.FastSessionServices getFastSessionServices()
getFastSessionServices in interface SessionFactoryImplementorpublic EntityPersister locateEntityPersister(Class byClass)
locateEntityPersister in interface SessionFactoryImplementorpublic EntityPersister locateEntityPersister(String byName)
locateEntityPersister in interface SessionFactoryImplementorpublic SessionFactoryImplementor.DeserializationResolver getDeserializationResolver()
getDeserializationResolver in interface SessionFactoryImplementorpublic IdentifierGeneratorFactory getIdentifierGeneratorFactory()
MappinggetIdentifierGeneratorFactory in interface Mappingpublic Type getIdentifierType(String className) throws MappingException
getIdentifierType in interface MappingMappingExceptionpublic String getIdentifierPropertyName(String className) throws MappingException
getIdentifierPropertyName in interface MappingMappingExceptionpublic Type getReferencedPropertyType(String className, String propertyName) throws MappingException
getReferencedPropertyType in interface MappingMappingExceptionpublic String getUuid()
SessionFactoryImplementorUUID, but kept
as a String.getUuid in interface SessionFactoryImplementorSessionFactoryRegistry.getSessionFactory(java.lang.String)public String getName()
SessionFactoryImplementorgetName in interface SessionFactoryImplementorpublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionpublic <T> List<RootGraphImplementor<? super T>> findEntityGraphsByJavaType(Class<T> entityClass)
findEntityGraphsByJavaType in interface SessionFactoryImplementorpublic EntityManager createEntityManager()
createEntityManager in interface EntityManagerFactorypublic EntityManager createEntityManager(Map map)
createEntityManager in interface EntityManagerFactorypublic EntityManager createEntityManager(SynchronizationType synchronizationType)
createEntityManager in interface EntityManagerFactorypublic EntityManager createEntityManager(SynchronizationType synchronizationType, Map map)
createEntityManager in interface EntityManagerFactorypublic CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder in interface EntityManagerFactorypublic MetamodelImplementor getMetamodel()
getMetamodel in interface EntityManagerFactorygetMetamodel in interface SessionFactoryImplementorgetMetamodel in interface HibernateEntityManagerFactorypublic boolean isOpen()
isOpen in interface EntityManagerFactorypublic Type resolveParameterBindType(Object bindValue)
resolveParameterBindType in interface QueryParameterBindingTypeResolverpublic Type resolveParameterBindType(Class clazz)
resolveParameterBindType in interface QueryParameterBindingTypeResolverCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.