TransactionManager

Transaction manager abstraction used to manage database connections and transactions.

Applications can use this interface directly, but it is not primary meant as API: Typically, transactions are used by calling the Database.useTransaction function or Spring's Transactional annotation if the Spring support is enabled.

Inheritors

Properties

Link copied to clipboard

The opened transaction of the current thread, null if there is no transaction opened.

Link copied to clipboard

The default transaction isolation, null for the default isolation level of the underlying datastore.

Functions

Link copied to clipboard
abstract fun newConnection(): Connection

Create a native JDBC connection to the database.

Link copied to clipboard
abstract fun newTransaction(isolation: TransactionIsolation? = defaultIsolation): Transaction

Open a new transaction for the current thread using the specific isolation if there is no transaction opened.