@Internal public class SwitchableCachingSessionFactory extends Object implements org.hibernate.engine.spi.SessionFactoryImplementor
CacheMode.IGNORE
when SessionCacheModeThreadLocal
is set to CacheMode.IGNORE
Modifier and Type | Method and Description |
---|---|
<T> void |
addNamedEntityGraph(String s,
javax.persistence.EntityGraph<T> entityGraph) |
void |
addNamedQuery(String s,
javax.persistence.Query query) |
void |
addObserver(org.hibernate.SessionFactoryObserver observer) |
void |
close() |
boolean |
containsFetchProfileDefinition(String name) |
javax.persistence.EntityManager |
createEntityManager() |
javax.persistence.EntityManager |
createEntityManager(Map map) |
javax.persistence.EntityManager |
createEntityManager(javax.persistence.SynchronizationType synchronizationType) |
javax.persistence.EntityManager |
createEntityManager(javax.persistence.SynchronizationType synchronizationType,
Map map) |
javax.persistence.EntityGraph |
findEntityGraphByName(String name) |
<T> List<javax.persistence.EntityGraph<? super T>> |
findEntityGraphsByType(Class<T> entityClass) |
Map<String,org.hibernate.metadata.ClassMetadata> |
getAllClassMetadata() |
Map |
getAllCollectionMetadata() |
Map |
getAllSecondLevelCacheRegions() |
org.hibernate.engine.spi.CacheImplementor |
getCache() |
org.hibernate.metadata.ClassMetadata |
getClassMetadata(Class entityClass) |
org.hibernate.metadata.ClassMetadata |
getClassMetadata(String entityName) |
org.hibernate.metadata.CollectionMetadata |
getCollectionMetadata(String roleName) |
javax.persistence.criteria.CriteriaBuilder |
getCriteriaBuilder() |
org.hibernate.Session |
getCurrentSession() |
org.hibernate.context.spi.CurrentTenantIdentifierResolver |
getCurrentTenantIdentifierResolver() |
org.hibernate.CustomEntityDirtinessStrategy |
getCustomEntityDirtinessStrategy() |
Set |
getDefinedFilterNames() |
org.hibernate.engine.spi.SessionFactoryImplementor.DeserializationResolver |
getDeserializationResolver() |
org.hibernate.proxy.EntityNotFoundDelegate |
getEntityNotFoundDelegate() |
org.hibernate.engine.profile.FetchProfile |
getFetchProfile(String name) |
org.hibernate.engine.spi.FilterDefinition |
getFilterDefinition(String filterName) |
org.hibernate.id.IdentifierGenerator |
getIdentifierGenerator(String rootEntityName) |
org.hibernate.id.factory.IdentifierGeneratorFactory |
getIdentifierGeneratorFactory() |
String |
getIdentifierPropertyName(String className) |
org.hibernate.type.Type |
getIdentifierType(String className) |
org.hibernate.Interceptor |
getInterceptor() |
org.hibernate.engine.jdbc.spi.JdbcServices |
getJdbcServices() |
org.hibernate.metamodel.spi.MetamodelImplementor |
getMetamodel() |
String |
getName() |
org.hibernate.query.spi.NamedQueryRepository |
getNamedQueryRepository() |
javax.persistence.PersistenceUnitUtil |
getPersistenceUnitUtil() |
Map<String,Object> |
getProperties() |
org.hibernate.engine.query.spi.QueryPlanCache |
getQueryPlanCache() |
Reference |
getReference() |
org.hibernate.type.Type |
getReferencedPropertyType(String className,
String propertyName) |
org.hibernate.service.spi.ServiceRegistryImplementor |
getServiceRegistry() |
org.hibernate.boot.spi.SessionFactoryOptions |
getSessionFactoryOptions() |
org.hibernate.cfg.Settings |
getSettings() |
org.hibernate.dialect.function.SQLFunctionRegistry |
getSqlFunctionRegistry() |
org.hibernate.stat.spi.StatisticsImplementor |
getStatistics() |
org.hibernate.TypeHelper |
getTypeHelper() |
org.hibernate.type.TypeResolver |
getTypeResolver() |
String |
getUuid() |
boolean |
isClosed() |
boolean |
isOpen() |
org.hibernate.Session |
openSession() |
org.hibernate.StatelessSession |
openStatelessSession() |
org.hibernate.StatelessSession |
openStatelessSession(Connection connection) |
org.hibernate.Session |
openTemporarySession() |
org.hibernate.type.Type |
resolveParameterBindType(Class clazz) |
org.hibernate.type.Type |
resolveParameterBindType(Object bindValue) |
<T> T |
unwrap(Class<T> aClass) |
org.hibernate.engine.spi.SessionBuilderImplementor |
withOptions() |
org.hibernate.StatelessSessionBuilder |
withStatelessOptions() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCollectionPersister, getCollectionPersisters, getCollectionRolesByEntityParticipant, getDialect, getEntityPersister, getEntityPersisters, getImplementors, getImportedClassName, getNamedQuery, getNamedSQLQuery, getNaturalIdCacheRegion, getNaturalIdCacheRegionAccessStrategy, getQueryCache, getQueryCache, getResultSetMapping, getReturnAliases, getReturnTypes, getSecondLevelCacheRegion, getSecondLevelCacheRegionAccessStrategy, getSQLExceptionConverter, getSQLExceptionHelper, getStatisticsImplementor, getUpdateTimestampsCache, iterateEntityNameResolvers, locateEntityPersister, locateEntityPersister, registerNamedQueryDefinition, registerNamedSQLQueryDefinition
public org.hibernate.boot.spi.SessionFactoryOptions getSessionFactoryOptions()
getSessionFactoryOptions
in interface org.hibernate.SessionFactory
public String getUuid()
getUuid
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public String getName()
getName
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.engine.spi.SessionBuilderImplementor withOptions()
withOptions
in interface org.hibernate.engine.spi.SessionFactoryImplementor
withOptions
in interface org.hibernate.SessionFactory
public org.hibernate.Session openTemporarySession() throws org.hibernate.HibernateException
openTemporarySession
in interface org.hibernate.engine.spi.SessionFactoryImplementor
org.hibernate.HibernateException
public org.hibernate.Session openSession() throws org.hibernate.HibernateException
openSession
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public org.hibernate.Session getCurrentSession() throws org.hibernate.HibernateException
getCurrentSession
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public org.hibernate.StatelessSessionBuilder withStatelessOptions()
withStatelessOptions
in interface org.hibernate.SessionFactory
public org.hibernate.StatelessSession openStatelessSession()
openStatelessSession
in interface org.hibernate.SessionFactory
public org.hibernate.StatelessSession openStatelessSession(Connection connection)
openStatelessSession
in interface org.hibernate.SessionFactory
public org.hibernate.stat.spi.StatisticsImplementor getStatistics()
getStatistics
in interface org.hibernate.engine.spi.SessionFactoryImplementor
getStatistics
in interface org.hibernate.SessionFactory
public org.hibernate.service.spi.ServiceRegistryImplementor getServiceRegistry()
getServiceRegistry
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.Interceptor getInterceptor()
getInterceptor
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.engine.query.spi.QueryPlanCache getQueryPlanCache()
getQueryPlanCache
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.query.spi.NamedQueryRepository getNamedQueryRepository()
getNamedQueryRepository
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.engine.profile.FetchProfile getFetchProfile(String name)
getFetchProfile
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.type.TypeResolver getTypeResolver()
getTypeResolver
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.id.IdentifierGenerator getIdentifierGenerator(String rootEntityName)
getIdentifierGenerator
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.proxy.EntityNotFoundDelegate getEntityNotFoundDelegate()
getEntityNotFoundDelegate
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.dialect.function.SQLFunctionRegistry getSqlFunctionRegistry()
getSqlFunctionRegistry
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public void addObserver(org.hibernate.SessionFactoryObserver observer)
addObserver
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy()
getCustomEntityDirtinessStrategy
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.context.spi.CurrentTenantIdentifierResolver getCurrentTenantIdentifierResolver()
getCurrentTenantIdentifierResolver
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.engine.spi.SessionFactoryImplementor.DeserializationResolver getDeserializationResolver()
getDeserializationResolver
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.engine.jdbc.spi.JdbcServices getJdbcServices()
getJdbcServices
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public org.hibernate.cfg.Settings getSettings()
getSettings
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public void close() throws org.hibernate.HibernateException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface javax.persistence.EntityManagerFactory
close
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public Map<String,Object> getProperties()
getProperties
in interface javax.persistence.EntityManagerFactory
public boolean isClosed()
isClosed
in interface org.hibernate.SessionFactory
public org.hibernate.engine.spi.CacheImplementor getCache()
getCache
in interface javax.persistence.EntityManagerFactory
getCache
in interface org.hibernate.engine.spi.SessionFactoryImplementor
getCache
in interface org.hibernate.SessionFactory
public javax.persistence.PersistenceUnitUtil getPersistenceUnitUtil()
getPersistenceUnitUtil
in interface javax.persistence.EntityManagerFactory
public void addNamedQuery(String s, javax.persistence.Query query)
addNamedQuery
in interface javax.persistence.EntityManagerFactory
public <T> T unwrap(Class<T> aClass)
unwrap
in interface javax.persistence.EntityManagerFactory
public <T> void addNamedEntityGraph(String s, javax.persistence.EntityGraph<T> entityGraph)
addNamedEntityGraph
in interface javax.persistence.EntityManagerFactory
public Set getDefinedFilterNames()
getDefinedFilterNames
in interface org.hibernate.SessionFactory
public org.hibernate.engine.spi.FilterDefinition getFilterDefinition(String filterName) throws org.hibernate.HibernateException
getFilterDefinition
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public boolean containsFetchProfileDefinition(String name)
containsFetchProfileDefinition
in interface org.hibernate.SessionFactory
public org.hibernate.TypeHelper getTypeHelper()
getTypeHelper
in interface org.hibernate.SessionFactory
public org.hibernate.metadata.ClassMetadata getClassMetadata(Class entityClass)
getClassMetadata
in interface org.hibernate.SessionFactory
public org.hibernate.metadata.ClassMetadata getClassMetadata(String entityName)
getClassMetadata
in interface org.hibernate.SessionFactory
public org.hibernate.metadata.CollectionMetadata getCollectionMetadata(String roleName)
getCollectionMetadata
in interface org.hibernate.SessionFactory
public Map<String,org.hibernate.metadata.ClassMetadata> getAllClassMetadata()
getAllClassMetadata
in interface org.hibernate.SessionFactory
public Map getAllCollectionMetadata()
getAllCollectionMetadata
in interface org.hibernate.SessionFactory
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public <T> List<javax.persistence.EntityGraph<? super T>> findEntityGraphsByType(Class<T> entityClass)
findEntityGraphsByType
in interface org.hibernate.jpa.HibernateEntityManagerFactory
public javax.persistence.EntityManager createEntityManager()
createEntityManager
in interface javax.persistence.EntityManagerFactory
public javax.persistence.EntityManager createEntityManager(Map map)
createEntityManager
in interface javax.persistence.EntityManagerFactory
public javax.persistence.EntityManager createEntityManager(javax.persistence.SynchronizationType synchronizationType)
createEntityManager
in interface javax.persistence.EntityManagerFactory
public javax.persistence.EntityManager createEntityManager(javax.persistence.SynchronizationType synchronizationType, Map map)
createEntityManager
in interface javax.persistence.EntityManagerFactory
public javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder
in interface javax.persistence.EntityManagerFactory
public org.hibernate.metamodel.spi.MetamodelImplementor getMetamodel()
getMetamodel
in interface javax.persistence.EntityManagerFactory
getMetamodel
in interface org.hibernate.engine.spi.SessionFactoryImplementor
getMetamodel
in interface org.hibernate.jpa.HibernateEntityManagerFactory
public javax.persistence.EntityGraph findEntityGraphByName(String name)
findEntityGraphByName
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public Map getAllSecondLevelCacheRegions()
getAllSecondLevelCacheRegions
in interface org.hibernate.engine.spi.SessionFactoryImplementor
public boolean isOpen()
isOpen
in interface javax.persistence.EntityManagerFactory
public org.hibernate.id.factory.IdentifierGeneratorFactory getIdentifierGeneratorFactory()
getIdentifierGeneratorFactory
in interface org.hibernate.engine.spi.Mapping
public org.hibernate.type.Type getIdentifierType(String className) throws org.hibernate.MappingException
getIdentifierType
in interface org.hibernate.engine.spi.Mapping
org.hibernate.MappingException
public String getIdentifierPropertyName(String className) throws org.hibernate.MappingException
getIdentifierPropertyName
in interface org.hibernate.engine.spi.Mapping
org.hibernate.MappingException
public org.hibernate.type.Type getReferencedPropertyType(String className, String propertyName) throws org.hibernate.MappingException
getReferencedPropertyType
in interface org.hibernate.engine.spi.Mapping
org.hibernate.MappingException
public org.hibernate.type.Type resolveParameterBindType(Object bindValue)
resolveParameterBindType
in interface org.hibernate.query.spi.QueryParameterBindingTypeResolver
public org.hibernate.type.Type resolveParameterBindType(Class clazz)
resolveParameterBindType
in interface org.hibernate.query.spi.QueryParameterBindingTypeResolver
Copyright © 2003–2020 Atlassian. All rights reserved.