# JdbcTransactionManager

interface JdbcTransactionManager : TransactionManagerApi

Represents the JDBC transaction manager interface, responsible for creating and managing JDBC transactions.

#### Inheritors

TransactionManager

## Properties

db
Link copied to clipboard
abstract val db: Database

The database instance associated with this transaction manager.

defaultIsolationLevel
Link copied to clipboard
abstract var defaultIsolationLevel: Int

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

defaultMaxAttempts
Link copied to clipboard
abstract var defaultMaxAttempts: Int
defaultMaxRetryDelay
Link copied to clipboard
abstract var defaultMaxRetryDelay: Long
defaultMinRetryDelay
Link copied to clipboard
abstract var defaultMinRetryDelay: Long
defaultReadOnly
Link copied to clipboard
abstract var defaultReadOnly: Boolean

## Functions

currentOrNull
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.

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

Returns a JdbcTransaction instance.