Back to Exposed

JdbcTransactionInterface

docs/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc.transactions/-jdbc-transaction-interface/index.html

1.2.02.4 KB
Original Source

JdbcTransactionInterface

interface JdbcTransactionInterface : TransactionInterface

Represents a unit block of work that is performed on a database using a JDBC driver.

Inheritors

JdbcTransaction

Members

Properties

connection

Link copied to clipboard

abstract val connection: ExposedConnection<*>

The database connection used by the transaction.

db

Link copied to clipboard

abstract override val db: Database

outerTransaction

Link copied to clipboard

abstract override val outerTransaction: JdbcTransaction?

readOnly

Link copied to clipboard

abstract val readOnly: Boolean

transactionIsolation

Link copied to clipboard

abstract val transactionIsolation: Int

The transaction isolation level of the transaction, which may differ from the set database level.

transactionManager

Link copied to clipboard

abstract val transactionManager: TransactionManagerApi

Functions

close

Link copied to clipboard

abstract fun close()

Closes the transaction and releases any savepoints.

commit

Link copied to clipboard

abstract fun commit()

Saves all changes since the last commit or rollback operation.

rollback

Link copied to clipboard

abstract fun rollback()

Reverts all changes since the last commit or rollback operation, or to the last set savepoint, if applicable.

Generated by Dokka © 2026 Copyright