Companion

object Companion

Properties

Link copied to clipboard

The database to use by default in all transactions.

Link copied to clipboard

The current thread's TransactionManager instance.

Functions

Link copied to clipboard

Clears any association between the provided database and its TransactionManager, and ensures that the database instance will not be available for use in future transactions.

Link copied to clipboard

Returns the current Transaction.

Link copied to clipboard
fun currentOrNew(isolation: Int): Transaction

Returns the current Transaction, or creates a new transaction with the provided isolation level.

Link copied to clipboard

Returns the current Transaction, or null if none exists.

Link copied to clipboard

Whether any TransactionManager instance has been initialized by a database.

Link copied to clipboard

Returns the TransactionManager instance that is associated with the provided database, or null if a manager has not been registered for the database.

Link copied to clipboard

Associates the provided database with a specific manager.

Link copied to clipboard

Sets the current thread's copy of the TransactionManager instance to the specified manager.