Save This Page
Home » spring-framework-2.5.6-with-dependencies » org.springframework » orm » hibernate3 » [javadoc | source]
org.springframework.orm.hibernate3
public class: SessionHolder [javadoc | source]
java.lang.Object
   org.springframework.transaction.support.ResourceHolderSupport
      org.springframework.orm.hibernate3.SessionHolder

All Implemented Interfaces:
    ResourceHolder

Session holder, wrapping a Hibernate Session and a Hibernate Transaction. HibernateTransactionManager binds instances of this class to the thread, for a given SessionFactory.

Note: This is an SPI class, not intended to be used by applications.

Constructor:
 public SessionHolder(Session session) 
 public SessionHolder(Object key,
    Session session) 
Method from org.springframework.orm.hibernate3.SessionHolder Summary:
addSession,   addSession,   clear,   containsSession,   doesNotHoldNonDefaultSession,   getAnySession,   getPreviousFlushMode,   getSession,   getSession,   getTransaction,   getValidatedSession,   getValidatedSession,   isEmpty,   removeSession,   setPreviousFlushMode,   setTransaction
Methods from org.springframework.transaction.support.ResourceHolderSupport:
clear,   getDeadline,   getTimeToLiveInMillis,   getTimeToLiveInSeconds,   hasTimeout,   isOpen,   isRollbackOnly,   isSynchronizedWithTransaction,   isVoid,   released,   requested,   reset,   setRollbackOnly,   setSynchronizedWithTransaction,   setTimeoutInMillis,   setTimeoutInSeconds,   unbound
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.orm.hibernate3.SessionHolder Detail:
 public  void addSession(Session session) 
 public  void addSession(Object key,
    Session session) 
 public  void clear() 
 public boolean containsSession(Session session) 
 public boolean doesNotHoldNonDefaultSession() 
 public Session getAnySession() 
 public FlushMode getPreviousFlushMode() 
 public Session getSession() 
 public Session getSession(Object key) 
 public Transaction getTransaction() 
 public Session getValidatedSession() 
 public Session getValidatedSession(Object key) 
 public boolean isEmpty() 
 public Session removeSession(Object key) 
 public  void setPreviousFlushMode(FlushMode previousFlushMode) 
 public  void setTransaction(Transaction transaction)