open class UserTransactionAdapter : UserTransaction
Adapter for a JTA UserTransaction handle, taking a JTA javax.transaction.TransactionManager reference and creating a JTA javax.transaction.UserTransaction handle for it.
The JTA UserTransaction interface is an exact subset of the JTA TransactionManager interface. Unfortunately, it does not serve as super-interface of TransactionManager, though, which requires an adapter such as this class to be used when intending to talk to a TransactionManager handle through the UserTransaction interface.
Used internally by Spring's JtaTransactionManager for certain scenarios. Not intended for direct use in application code.
Author
Juergen Hoeller
Since
1.1.5
UserTransactionAdapter(transactionManager: TransactionManager)
Create a new UserTransactionAdapter for the given TransactionManager. |
open fun begin(): Unit |
|
open fun commit(): Unit |
|
open fun getStatus(): Int |
|
fun getTransactionManager(): TransactionManager
Return the JTA TransactionManager that this adapter delegates to. |
|
open fun rollback(): Unit |
|
open fun setRollbackOnly(): Unit |
|
open fun setTransactionTimeout(timeout: Int): Unit |