Spring Framework

org.springframework.orm.hibernate4
Class SpringJtaSessionContext

java.lang.Object
  extended by org.hibernate.context.spi.AbstractCurrentSessionContext
      extended by org.hibernate.context.internal.JTASessionContext
          extended by org.springframework.orm.hibernate4.SpringJtaSessionContext
All Implemented Interfaces:
java.io.Serializable, org.hibernate.context.spi.CurrentSessionContext

public class SpringJtaSessionContext
extends org.hibernate.context.internal.JTASessionContext

Spring-specific subclass of Hibernate's JTASessionContext, setting FlushMode.MANUAL for 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
org.hibernate.context.internal.JTASessionContext.CleanupSynch
 
Constructor Summary
SpringJtaSessionContext(org.hibernate.engine.spi.SessionFactoryImplementor factory)
           
 
Method Summary
protected  org.hibernate.Session buildOrObtainSession()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringJtaSessionContext

public SpringJtaSessionContext(org.hibernate.engine.spi.SessionFactoryImplementor factory)
Method Detail

buildOrObtainSession

protected org.hibernate.Session buildOrObtainSession()
Overrides:
buildOrObtainSession in class org.hibernate.context.internal.JTASessionContext

Spring Framework