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)
Deprecated.
|
void |
evict(Class persistentClass,
Serializable id)
Deprecated.
|
void |
evictCollection(String roleName)
Deprecated.
|
void |
evictCollection(String roleName,
Serializable id)
Deprecated.
|
void |
evictEntity(String entityName)
Deprecated.
|
void |
evictEntity(String entityName,
Serializable id)
Deprecated.
|
void |
evictQueries()
Deprecated.
|
void |
evictQueries(String cacheRegion)
Deprecated.
|
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.Session |
getCurrentSession() |
Set |
getDefinedFilterNames() |
protected org.hibernate.SessionFactory |
getDelegate() |
org.hibernate.engine.spi.FilterDefinition |
getFilterDefinition(String filterName) |
Reference |
getReference() |
org.hibernate.SessionFactory.SessionFactoryOptions |
getSessionFactoryOptions() |
org.hibernate.stat.Statistics |
getStatistics() |
org.hibernate.TypeHelper |
getTypeHelper() |
boolean |
isClosed() |
org.hibernate.Session |
openSession() |
org.hibernate.StatelessSession |
openStatelessSession() |
org.hibernate.StatelessSession |
openStatelessSession(Connection connection) |
org.hibernate.SessionBuilder |
withOptions() |
org.hibernate.StatelessSessionBuilder |
withStatelessOptions() |
public SessionFactoryDecorator(@Nonnull org.hibernate.SessionFactory delegate)
@Nonnull protected org.hibernate.SessionFactory getDelegate()
public org.hibernate.SessionFactory.SessionFactoryOptions getSessionFactoryOptions()
getSessionFactoryOptions in interface org.hibernate.SessionFactorypublic org.hibernate.SessionBuilder withOptions()
withOptions in interface org.hibernate.SessionFactorypublic org.hibernate.Session openSession()
throws org.hibernate.HibernateException
openSession in interface org.hibernate.SessionFactoryorg.hibernate.HibernateExceptionpublic org.hibernate.Session getCurrentSession()
throws org.hibernate.HibernateException
getCurrentSession in interface org.hibernate.SessionFactoryorg.hibernate.HibernateExceptionpublic org.hibernate.StatelessSessionBuilder withStatelessOptions()
withStatelessOptions in interface org.hibernate.SessionFactorypublic org.hibernate.StatelessSession openStatelessSession()
openStatelessSession in interface org.hibernate.SessionFactorypublic org.hibernate.StatelessSession openStatelessSession(Connection connection)
openStatelessSession in interface org.hibernate.SessionFactorypublic org.hibernate.metadata.ClassMetadata getClassMetadata(Class entityClass)
getClassMetadata in interface org.hibernate.SessionFactorypublic org.hibernate.metadata.ClassMetadata getClassMetadata(String entityName)
getClassMetadata in interface org.hibernate.SessionFactorypublic org.hibernate.metadata.CollectionMetadata getCollectionMetadata(String roleName)
getCollectionMetadata in interface org.hibernate.SessionFactorypublic Map<String,org.hibernate.metadata.ClassMetadata> getAllClassMetadata()
getAllClassMetadata in interface org.hibernate.SessionFactorypublic Map getAllCollectionMetadata()
getAllCollectionMetadata in interface org.hibernate.SessionFactorypublic org.hibernate.stat.Statistics getStatistics()
getStatistics in interface org.hibernate.SessionFactorypublic void close()
throws org.hibernate.HibernateException
close in interface org.hibernate.SessionFactoryorg.hibernate.HibernateExceptionpublic boolean isClosed()
isClosed in interface org.hibernate.SessionFactorypublic org.hibernate.Cache getCache()
getCache in interface org.hibernate.SessionFactory@Deprecated public void evict(Class persistentClass) throws org.hibernate.HibernateException
evict in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException@Deprecated public void evict(Class persistentClass, Serializable id) throws org.hibernate.HibernateException
evict in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException@Deprecated public void evictEntity(String entityName) throws org.hibernate.HibernateException
evictEntity in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException@Deprecated public void evictEntity(String entityName, Serializable id) throws org.hibernate.HibernateException
evictEntity in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException@Deprecated public void evictCollection(String roleName) throws org.hibernate.HibernateException
evictCollection in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException@Deprecated public void evictCollection(String roleName, Serializable id) throws org.hibernate.HibernateException
evictCollection in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException@Deprecated public void evictQueries(String cacheRegion) throws org.hibernate.HibernateException
evictQueries in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException@Deprecated public void evictQueries() throws org.hibernate.HibernateException
evictQueries in interface org.hibernate.SessionFactoryorg.hibernate.HibernateExceptionpublic Set getDefinedFilterNames()
getDefinedFilterNames in interface org.hibernate.SessionFactorypublic org.hibernate.engine.spi.FilterDefinition getFilterDefinition(String filterName) throws org.hibernate.HibernateException
getFilterDefinition in interface org.hibernate.SessionFactoryorg.hibernate.HibernateExceptionpublic boolean containsFetchProfileDefinition(String name)
containsFetchProfileDefinition in interface org.hibernate.SessionFactorypublic org.hibernate.TypeHelper getTypeHelper()
getTypeHelper in interface org.hibernate.SessionFactorypublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingException