public class SessionHolder extends ResourceHolderSupport
Note: This is an SPI class, not intended to be used by applications.
HibernateTransactionManager
,
SessionFactoryUtils
Constructor and Description |
---|
SessionHolder(org.hibernate.Session session) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the transactional state of this resource holder.
|
org.hibernate.FlushMode |
getPreviousFlushMode() |
org.hibernate.Session |
getSession() |
org.hibernate.Transaction |
getTransaction() |
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, unbound
public org.hibernate.Session getSession()
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()
ResourceHolderSupport
clear
in class ResourceHolderSupport
Copyright © 2019. All rights reserved.