@Deprecated public class SessionHolder extends ResourceHolderSupport
Note: This is an SPI class, not intended to be used by applications.
HibernateTransactionManager
,
SessionFactoryUtils
Constructor and Description |
---|
SessionHolder(java.lang.Object key,
Session session)
Deprecated.
|
SessionHolder(Session session)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addSession(java.lang.Object key,
Session session)
Deprecated.
|
void |
addSession(Session session)
Deprecated.
|
void |
clear()
Deprecated.
Clear the transactional state of this resource holder.
|
boolean |
containsSession(Session session)
Deprecated.
|
boolean |
doesNotHoldNonDefaultSession()
Deprecated.
|
Session |
getAnySession()
Deprecated.
|
FlushMode |
getPreviousFlushMode()
Deprecated.
|
Session |
getSession()
Deprecated.
|
Session |
getSession(java.lang.Object key)
Deprecated.
|
Transaction |
getTransaction()
Deprecated.
|
Session |
getValidatedSession()
Deprecated.
|
Session |
getValidatedSession(java.lang.Object key)
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
Session |
removeSession(java.lang.Object key)
Deprecated.
|
void |
setPreviousFlushMode(FlushMode previousFlushMode)
Deprecated.
|
void |
setTransaction(Transaction transaction)
Deprecated.
|
getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
public SessionHolder(Session session)
public SessionHolder(java.lang.Object key, Session session)
public Session getSession()
public Session getSession(java.lang.Object key)
public Session getValidatedSession()
public Session getValidatedSession(java.lang.Object key)
public Session getAnySession()
public void addSession(Session session)
public void addSession(java.lang.Object key, Session session)
public Session removeSession(java.lang.Object key)
public boolean containsSession(Session session)
public boolean isEmpty()
public boolean doesNotHoldNonDefaultSession()
public void setTransaction(Transaction transaction)
public Transaction getTransaction()
public void setPreviousFlushMode(FlushMode previousFlushMode)
public FlushMode getPreviousFlushMode()
public void clear()
ResourceHolderSupport
clear
in class ResourceHolderSupport