OctaviusSessionHolder

internal class OctaviusSessionHolder(val session: OctaviusSession) : ResourceHolderSupport

Holds the session bound to the current transaction.

Spring drives the connection itself inside a transaction, so a session over it lasts as long as the transaction does rather than as long as one OctaviusTemplate.execute call: opening one per call would build a notification, copy and type manager each time, and would leave the question of which of them undoes the state on the connection unanswered.

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()