OctaviusSessionHolder

internal open class OctaviusSessionHolder(val session: OctaviusSession) : ResourceHolderSupport

Holds the session bound to the current transaction: by OctaviusJdbcTransactionManager for a transaction it begins, and by OctaviusTemplate for one another manager began, or for synchronization with no transaction behind it.

A session lasts as long as the transaction, not as one OctaviusTemplate.execute call, so the state it leaves on the connection is undone once.

Constructors

Link copied to clipboard
constructor(session: OctaviusSession)

Properties

Link copied to clipboard
open val deadline: @Nullable Date?
Link copied to clipboard
open val isOpen: Boolean
Link copied to clipboard
Link copied to clipboard
open val isVoid: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun clear()
Link copied to clipboard
open fun hasTimeout(): Boolean
Link copied to clipboard
open fun released()
Link copied to clipboard
open fun requested()
Link copied to clipboard
open fun reset()
Link copied to clipboard
Link copied to clipboard
open fun setRollbackOnly()
Link copied to clipboard
open fun setTimeoutInMillis(millis: Long)
Link copied to clipboard
open fun setTimeoutInSeconds(seconds: Int)
Link copied to clipboard
open fun unbound()