Package org.hibernate.context.spi
Class AbstractCurrentSessionContext
- java.lang.Object
-
- org.hibernate.context.spi.AbstractCurrentSessionContext
-
- All Implemented Interfaces:
Serializable
,CurrentSessionContext
- Direct Known Subclasses:
JTASessionContext
,ManagedSessionContext
,ThreadLocalSessionContext
public abstract class AbstractCurrentSessionContext extends Object implements CurrentSessionContext
Base support forCurrentSessionContext
implementors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCurrentSessionContext(SessionFactoryImplementor factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SessionBuilder
baseSessionBuilder()
SessionFactoryImplementor
factory()
Access to the SessionFactoryprotected void
validateExistingSession(Session existingSession)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.context.spi.CurrentSessionContext
currentSession
-
-
-
-
Constructor Detail
-
AbstractCurrentSessionContext
protected AbstractCurrentSessionContext(SessionFactoryImplementor factory)
-
-
Method Detail
-
factory
public SessionFactoryImplementor factory()
Access to the SessionFactory- Returns:
- The SessionFactory being serviced by this context
-
baseSessionBuilder
protected SessionBuilder baseSessionBuilder()
-
validateExistingSession
protected void validateExistingSession(Session existingSession)
-
-