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