spring-framework / org.springframework.orm.hibernate5 / SessionHolder

SessionHolder

open class SessionHolder : ResourceHolderSupport

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.

Author
Juergen Hoeller

Since
4.2

See Also
HibernateTransactionManagerSessionFactoryUtils

Constructors

<init>

SessionHolder(session: Session)

Functions

clear

open fun clear(): Unit

getPreviousFlushMode

open fun getPreviousFlushMode(): FlushMode

getSession

open fun getSession(): Session

getTransaction

open fun getTransaction(): Transaction

setPreviousFlushMode

open fun setPreviousFlushMode(previousFlushMode: FlushMode): Unit

setTransaction

open fun setTransaction(transaction: Transaction): Unit