Transaction

Representation of a transaction.

Transactional code can use this interface to retrieve the backend connection, and to programmatically trigger a commit or rollback (instead of implicit commits and rollbacks of using Database.useTransaction).

Properties

Link copied to clipboard
abstract val connection: Connection

The backend JDBC connection of this transaction.

Functions

Link copied to clipboard
abstract override fun close()

Close the transaction and release its underlying resources (e.g. the backend connection).

Link copied to clipboard
abstract fun commit()

Commit the transaction.

Link copied to clipboard
abstract fun rollback()

Rollback the transaction.