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, withStatelessOptions
public 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.SessionFactory
openSession
in class SessionFactoryDecorator
org.hibernate.HibernateException
public org.hibernate.Session getCurrentSession() throws org.hibernate.HibernateException
getCurrentSession
in interface org.hibernate.SessionFactory
getCurrentSession
in class SessionFactoryDecorator
org.hibernate.HibernateException