open class SimpleTransactionStatus : AbstractTransactionStatus
A simple org.springframework.transaction.TransactionStatus implementation.
Derives from AbstractTransactionStatus and adds an explicit "newTransaction" flag.
This class is not used by any of Spring's pre-built org.springframework.transaction.PlatformTransactionManager implementations. It is mainly provided as a start for custom transaction manager implementations and as a static mock for testing transactional code (either as part of a mock PlatformTransactionManager or as argument passed into a TransactionCallback to be tested).
Author
Juergen Hoeller
Since
1.2.3
See Also
#SimpleTransactionStatus(boolean)TransactionCallback
SimpleTransactionStatus()
Create a new instance of the SimpleTransactionStatus class, indicating a new transaction. SimpleTransactionStatus(newTransaction: Boolean)
Create a new instance of the SimpleTransactionStatus class. |
open fun isNewTransaction(): Boolean |