public class RecordingSessionFactory extends SessionFactoryDecorator
| Constructor and Description |
|---|
RecordingSessionFactory(org.hibernate.SessionFactory delegate) |
| Modifier and Type | Method and Description |
|---|---|
int |
decreaseSessionCount() |
org.hibernate.Session |
getCurrentSession() |
int |
getSessionCount() |
int |
increaseSessionCount() |
org.hibernate.Session |
openSession() |
close, containsFetchProfileDefinition, evict, evict, evictCollection, evictCollection, evictEntity, evictEntity, evictQueries, evictQueries, getAllClassMetadata, getAllCollectionMetadata, getCache, getClassMetadata, getClassMetadata, getCollectionMetadata, getDefinedFilterNames, getDelegate, getFilterDefinition, getReference, getSessionFactoryOptions, getStatistics, getTypeHelper, isClosed, openStatelessSession, openStatelessSession, withOptions, withStatelessOptionspublic RecordingSessionFactory(@Nonnull org.hibernate.SessionFactory delegate)
public int increaseSessionCount()
public int decreaseSessionCount()
public int getSessionCount()
public org.hibernate.Session openSession()
throws org.hibernate.HibernateException
openSession in interface org.hibernate.SessionFactoryopenSession in class SessionFactoryDecoratororg.hibernate.HibernateExceptionpublic org.hibernate.Session getCurrentSession()
throws org.hibernate.HibernateException
getCurrentSession in interface org.hibernate.SessionFactorygetCurrentSession in class SessionFactoryDecoratororg.hibernate.HibernateException