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() |
addNamedEntityGraph, addNamedQuery, close, containsFetchProfileDefinition, createEntityManager, createEntityManager, createEntityManager, createEntityManager, findEntityGraphsByType, getAllClassMetadata, getAllCollectionMetadata, getCache, getClassMetadata, getClassMetadata, getCollectionMetadata, getCriteriaBuilder, getDefinedFilterNames, getDelegate, getFilterDefinition, getMetamodel, getPersistenceUnitUtil, getProperties, getReference, getSessionFactoryOptions, getStatistics, getTypeHelper, isClosed, isOpen, openStatelessSession, openStatelessSession, unwrap, 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