TransactionManager

Represents the manager registered to a database, which is responsible for creating new transactions and storing data related to the database and its transactions.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The default transaction isolation level. Unless specified, the database-specific level will be used.

Link copied to clipboard
abstract var defaultMaxAttempts: Int

The default maximum amount of attempts that will be made to perform a transaction.

Link copied to clipboard
Link copied to clipboard

The default maximum number of milliseconds to wait before retrying a transaction if an exception is thrown.

Link copied to clipboard
Link copied to clipboard

The default minimum number of milliseconds to wait before retrying a transaction if an exception is thrown.

Link copied to clipboard
abstract var defaultReadOnly: Boolean

Whether transactions should be performed in read-only mode. Unless specified, the database default will be used.

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun bindTransactionToThread(transaction: Transaction?)

Sets the current thread's copy of the manager's thread-local variable to the specified transaction.

Link copied to clipboard
abstract fun currentOrNull(): Transaction?

Returns the current Transaction, or null if none exists.

Link copied to clipboard
abstract fun newTransaction(isolation: Int = defaultIsolationLevel, readOnly: Boolean = defaultReadOnly, outerTransaction: Transaction? = null): Transaction

Returns a Transaction instance.