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

## Constructors

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

## Properties

defaultTimeout
Link copied to clipboard
var defaultTimeout: Int
isFailEarlyOnGlobalRollbackOnly
Link copied to clipboard
var isFailEarlyOnGlobalRollbackOnly: Boolean
isGlobalRollbackOnParticipationFailure
Link copied to clipboard
var isGlobalRollbackOnParticipationFailure: Boolean
isNestedTransactionAllowed
Link copied to clipboard
var isNestedTransactionAllowed: Boolean
isRollbackOnCommitFailure
Link copied to clipboard
var isRollbackOnCommitFailure: Boolean
isValidateExistingTransaction
Link copied to clipboard
var isValidateExistingTransaction: Boolean
transactionExecutionListeners
Link copied to clipboard
var transactionExecutionListeners: Collection<TransactionExecutionListener?>?
transactionSynchronization
Link copied to clipboard
var transactionSynchronization: Int

## Functions

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