Class SpringJtaSessionContext
- java.lang.Object
- org.hibernate.context.spi.AbstractCurrentSessionContext
- org.hibernate.context.internal.JTASessionContext
- org.springframework.orm.hibernate4.SpringJtaSessionContext
- All Implemented Interfaces:
Serializable,CurrentSessionContext
public class SpringJtaSessionContext extends JTASessionContext
Spring-specific subclass of Hibernate's JTASessionContext, settingFlushMode.MANUALfor read-only transactions.- Since:
- 3.1
- Author:
- Juergen Hoeller
- See Also:
- Serialized Form
Nested Class Summary
Nested classes/interfaces inherited from class org.hibernate.context.internal.JTASessionContext
JTASessionContext.CleanupSync
Constructor Summary
Constructors Constructor Description SpringJtaSessionContext(SessionFactoryImplementor factory)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SessionbuildOrObtainSession()Methods inherited from class org.hibernate.context.internal.JTASessionContext
currentSession, getConnectionReleaseMode, isAutoCloseEnabled, isAutoFlushEnabled
Methods inherited from class org.hibernate.context.spi.AbstractCurrentSessionContext
baseSessionBuilder, factory, validateExistingSession
Constructor Detail
SpringJtaSessionContext
public SpringJtaSessionContext(SessionFactoryImplementor factory)
Method Detail
buildOrObtainSession
protected Session buildOrObtainSession()
- Overrides:
buildOrObtainSessionin classJTASessionContext