ThreadLocalTransactionManager
TransactionManager implementation registered to the provided database value db.
setupTxConnection can be provided to override the default configuration of transaction settings when a connection is retrieved from the database.
Constructors
Properties
The default transaction isolation level. Unless specified, the database-specific level will be used.
The default maximum amount of attempts that will be made to perform a transaction.
The default maximum number of milliseconds to wait before retrying a transaction if an exception is thrown.
The default minimum number of milliseconds to wait before retrying a transaction if an exception is thrown.
Whether transactions should be performed in read-only mode. Unless specified, the database default will be used.
A thread local variable storing the current transaction.
Functions
Sets the current thread's copy of the manager's thread-local variable to the specified transaction.
Returns the current Transaction, or null
if none exists.
Returns a Transaction instance.