类 SessionHolder
- java.lang.Object
- org.springframework.transaction.support.ResourceHolderSupport
- org.springframework.orm.hibernate3.SessionHolder
- 所有已实现的接口:
ResourceHolder
@Deprecated public class SessionHolder extends ResourceHolderSupport
已过时。as of Spring 4.3, in favor of Hibernate 4.x/5.xSession 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.
- 从以下版本开始:
- 1.2
- 作者:
- Juergen Hoeller
- 另请参阅:
HibernateTransactionManager
,SessionFactoryUtils
构造器概要
构造器 构造器 说明 SessionHolder(Object key, Session session)
已过时。SessionHolder(Session session)
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
addSession(Object key, Session session)
已过时。void
addSession(Session session)
已过时。void
clear()
已过时。Clear the transactional state of this resource holder.boolean
containsSession(Session session)
已过时。boolean
doesNotHoldNonDefaultSession()
已过时。Session
getAnySession()
已过时。FlushMode
getPreviousFlushMode()
已过时。Session
getSession()
已过时。Session
getSession(Object key)
已过时。Transaction
getTransaction()
已过时。Session
getValidatedSession()
已过时。Session
getValidatedSession(Object key)
已过时。boolean
isEmpty()
已过时。Session
removeSession(Object key)
已过时。void
setPreviousFlushMode(FlushMode previousFlushMode)
已过时。void
setTransaction(Transaction transaction)
已过时。从类继承的方法 org.springframework.transaction.support.ResourceHolderSupport
getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
构造器详细资料
SessionHolder
public SessionHolder(Session session)
已过时。
SessionHolder
public SessionHolder(Object key, Session session)
已过时。
方法详细资料
getSession
public Session getSession()
已过时。
getSession
public Session getSession(Object key)
已过时。
getValidatedSession
public Session getValidatedSession()
已过时。
getValidatedSession
public Session getValidatedSession(Object key)
已过时。
getAnySession
public Session getAnySession()
已过时。
addSession
public void addSession(Session session)
已过时。
addSession
public void addSession(Object key, Session session)
已过时。
removeSession
public Session removeSession(Object key)
已过时。
containsSession
public boolean containsSession(Session session)
已过时。
isEmpty
public boolean isEmpty()
已过时。
doesNotHoldNonDefaultSession
public boolean doesNotHoldNonDefaultSession()
已过时。
setTransaction
public void setTransaction(Transaction transaction)
已过时。
getTransaction
public Transaction getTransaction()
已过时。
setPreviousFlushMode
public void setPreviousFlushMode(FlushMode previousFlushMode)
已过时。
getPreviousFlushMode
public FlushMode getPreviousFlushMode()
已过时。
clear
public void clear()
已过时。从类复制的说明:ResourceHolderSupport
Clear the transactional state of this resource holder.- 覆盖:
clear
在类中ResourceHolderSupport