docs/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc.transactions/-transaction-manager/index.html
class TransactionManager(val db: Database, setupTxConnection: (ExposedConnection<*>, JdbcTransactionInterface) -> Unit? = null) : JdbcTransactionManager
JdbcTransactionManager implementation registered to the provided database value db.
setupTxConnection can be provided to override the default configuration of transaction settings when a connection is retrieved from the database.
MembersMembers & Extensions
Link copied to clipboard
constructor(db: Database, setupTxConnection: (ExposedConnection<*>, JdbcTransactionInterface) -> Unit? = null)
Link copied to clipboard
object Companion
Link copied to clipboard
open override val db: Database
The database instance associated with this transaction manager.
Link copied to clipboard
open override var defaultIsolationLevel: Int
The default transaction isolation level. Unless specified, the database-specific level will be used.
Link copied to clipboard
open override var defaultMaxAttempts: Int
Link copied to clipboard
open override var defaultMaxRetryDelay: Long
Link copied to clipboard
open override var defaultMinRetryDelay: Long
Link copied to clipboard
open override var defaultReadOnly: Boolean
Link copied to clipboard
fun JdbcTransactionManager.currentOrNull(): JdbcTransaction?
Returns the current JDBC transaction from the thread-local stack for this manager's database, or null if none exists.
Link copied to clipboard
open override fun newTransaction(isolation: Int = defaultIsolationLevel, readOnly: Boolean = defaultReadOnly, outerTransaction: JdbcTransaction? = null): JdbcTransaction
Returns a JdbcTransaction instance.
Link copied to clipboard
open override fun toString(): String
Generated by Dokka © 2026 Copyright