org.springframework.datastore.transactions
Class SessionHolder

java.lang.Object
  extended by org.springframework.transaction.support.ResourceHolderSupport
      extended by org.springframework.datastore.transactions.SessionHolder
All Implemented Interfaces:
org.springframework.transaction.support.ResourceHolder

public class SessionHolder
extends org.springframework.transaction.support.ResourceHolderSupport

Holds a reference to the session

Since:
1.0

Constructor Summary
SessionHolder(Session session)
           
 
Method Summary
 void addSession(Session session)
           
 boolean containsSession(Session session)
           
 boolean doesNotHoldNonDefaultSession()
           
 Session getSession()
           
 Transaction getTransaction()
           
 boolean isEmpty()
           
 void setTransaction(Transaction transaction)
           
 
Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionHolder

public SessionHolder(Session session)
Method Detail

getTransaction

public Transaction getTransaction()

setTransaction

public void setTransaction(Transaction transaction)

getSession

public Session getSession()

isEmpty

public boolean isEmpty()

doesNotHoldNonDefaultSession

public boolean doesNotHoldNonDefaultSession()

addSession

public void addSession(Session session)

containsSession

public boolean containsSession(Session session)