spring-framework / org.springframework.transaction.jta / SimpleTransactionFactory

SimpleTransactionFactory

open class SimpleTransactionFactory : TransactionFactory

Default implementation of the TransactionFactory strategy interface, simply wrapping a standard JTA javax.transaction.TransactionManager.

Does not support transaction names; simply ignores any specified name.

Author
Juergen Hoeller

Since
2.5

See Also
javax.transaction.TransactionManager#setTransactionTimeout(int)javax.transaction.TransactionManager#begin()javax.transaction.TransactionManager#getTransaction()

Constructors

<init>

SimpleTransactionFactory(transactionManager: TransactionManager)

Create a new SimpleTransactionFactory for the given TransactionManager

Functions

createTransaction

open fun createTransaction(name: String, timeout: Int): Transaction

supportsResourceAdapterManagedTransactions

open fun supportsResourceAdapterManagedTransactions(): Boolean