SpringTransactionManager

class SpringTransactionManager(dataSource: DataSource, databaseConfig: DatabaseConfig = DatabaseConfig {}, showSql: Boolean = false) : AbstractPlatformTransactionManager

Transaction Manager implementation that builds on top of Spring's standard transaction workflow.

Parameters

dataSource

The data source that produces Connection objects.

databaseConfig

The configuration that defines custom properties to be used with connections. If none is specified, the default configuration values will be used.

Samples

org.jetbrains.exposed.spring.TestConfig

Constructors

Link copied to clipboard
constructor(dataSource: DataSource, databaseConfig: DatabaseConfig = DatabaseConfig {}, showSql: Boolean = false)

Functions

Link copied to clipboard
open fun addListener(listener: TransactionExecutionListener)
Link copied to clipboard
override fun commit(status: TransactionStatus)
Link copied to clipboard
override fun getTransaction(@Nullable definition: TransactionDefinition): TransactionStatus
Link copied to clipboard
override fun rollback(status: TransactionStatus)
Link copied to clipboard