public class SessionFactoryDecorator extends Object implements org.hibernate.SessionFactory
Constructor and Description |
---|
SessionFactoryDecorator(org.hibernate.SessionFactory delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
containsFetchProfileDefinition(String name) |
void |
evict(Class persistentClass) |
void |
evict(Class persistentClass,
Serializable id) |
void |
evictCollection(String roleName) |
void |
evictCollection(String roleName,
Serializable id) |
void |
evictEntity(String entityName) |
void |
evictEntity(String entityName,
Serializable id) |
void |
evictQueries() |
void |
evictQueries(String cacheRegion) |
Map<String,org.hibernate.metadata.ClassMetadata> |
getAllClassMetadata() |
Map |
getAllCollectionMetadata() |
org.hibernate.Cache |
getCache() |
org.hibernate.metadata.ClassMetadata |
getClassMetadata(Class entityClass) |
org.hibernate.metadata.ClassMetadata |
getClassMetadata(String entityName) |
org.hibernate.metadata.CollectionMetadata |
getCollectionMetadata(String roleName) |
org.hibernate.classic.Session |
getCurrentSession() |
Set |
getDefinedFilterNames() |
protected org.hibernate.SessionFactory |
getDelegate() |
org.hibernate.engine.FilterDefinition |
getFilterDefinition(String filterName) |
Reference |
getReference() |
org.hibernate.stat.Statistics |
getStatistics() |
org.hibernate.TypeHelper |
getTypeHelper() |
boolean |
isClosed() |
org.hibernate.classic.Session |
openSession() |
org.hibernate.classic.Session |
openSession(Connection connection) |
org.hibernate.classic.Session |
openSession(Connection connection,
org.hibernate.Interceptor interceptor) |
org.hibernate.classic.Session |
openSession(org.hibernate.Interceptor interceptor) |
org.hibernate.StatelessSession |
openStatelessSession() |
org.hibernate.StatelessSession |
openStatelessSession(Connection connection) |
public SessionFactoryDecorator(@Nonnull org.hibernate.SessionFactory delegate)
@Nonnull protected org.hibernate.SessionFactory getDelegate()
public org.hibernate.classic.Session openSession() throws org.hibernate.HibernateException
openSession
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public org.hibernate.classic.Session openSession(org.hibernate.Interceptor interceptor) throws org.hibernate.HibernateException
openSession
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public org.hibernate.classic.Session openSession(Connection connection)
openSession
in interface org.hibernate.SessionFactory
public org.hibernate.classic.Session openSession(Connection connection, org.hibernate.Interceptor interceptor)
openSession
in interface org.hibernate.SessionFactory
public org.hibernate.classic.Session getCurrentSession() throws org.hibernate.HibernateException
getCurrentSession
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
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.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 org.hibernate.stat.Statistics getStatistics()
getStatistics
in interface org.hibernate.SessionFactory
public void close() throws org.hibernate.HibernateException
close
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public boolean isClosed()
isClosed
in interface org.hibernate.SessionFactory
public org.hibernate.Cache getCache()
getCache
in interface org.hibernate.SessionFactory
public void evict(Class persistentClass) throws org.hibernate.HibernateException
evict
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public void evict(Class persistentClass, Serializable id) throws org.hibernate.HibernateException
evict
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public void evictEntity(String entityName) throws org.hibernate.HibernateException
evictEntity
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public void evictEntity(String entityName, Serializable id) throws org.hibernate.HibernateException
evictEntity
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public void evictCollection(String roleName) throws org.hibernate.HibernateException
evictCollection
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public void evictCollection(String roleName, Serializable id) throws org.hibernate.HibernateException
evictCollection
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public void evictQueries(String cacheRegion) throws org.hibernate.HibernateException
evictQueries
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public void evictQueries() throws org.hibernate.HibernateException
evictQueries
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public Set getDefinedFilterNames()
getDefinedFilterNames
in interface org.hibernate.SessionFactory
public org.hibernate.engine.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 Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException