Reset the TransactionInfo ThreadLocal.
Reset the TransactionInfo ThreadLocal.
Call this in all cases: exception or normal return!
information about the current transaction (may be { @code null})
Execute after successful completion of call, but not after an exception was handled.
Execute after successful completion of call, but not after an exception was handled. Do nothing if we didn't create a transaction.
information about the current transaction
Handle a throwable, completing the transaction.
Handle a throwable, completing the transaction. We may commit or roll back, depending on the configuration.
information about the current transaction
throwable encountered
Create a transaction if necessary based on the given TransactionAttribute.
Create a transaction if necessary based on the given TransactionAttribute.
Allows callers to perform custom TransactionAttribute lookups through the TransactionAttributeSource.
the TransactionAttribute (may be { @code null})
the fully qualified method name (used for monitoring and logging purposes)
a TransactionInfo object, whether or not a transaction was created. The { @code hasTransaction()} method on TransactionInfo can be used to tell if there was a transaction created.
Get a transactional resource for current transaction execution, create a new one if it not exists
Get a transactional resource for current transaction execution, create a new one if it not exists
Prepare a TransactionInfo for the given attribute and status object.
Prepare a TransactionInfo for the given attribute and status object.
the TransactionAttribute (may be { @code null})
the fully qualified method name (used for monitoring and logging purposes)
the TransactionStatus for the current transaction
the prepared TransactionInfo object
Release the transaction resource after current transaction complete
Release the transaction resource after current transaction complete
the name of the resource
the actual transactional resource object obtained by:
obtainResource(resource:String):Resource
A simple Transactional function that uses jdbc Connection(obtained from DBApi and binding it to transaction execution context) as a transactional resource.