public interface TransactionContext extends Scope
TransactionProvider
.Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
cause()
The exception that has caused the rollback.
|
TransactionContext |
cause(java.lang.Exception cause)
Set the exception that has caused the rollback to the current transaction
context.
|
Transaction |
transaction()
A user-defined transaction object, possibly obtained from
TransactionProvider.begin(TransactionContext) . |
TransactionContext |
transaction(Transaction transaction)
Set the user-defined transaction object to the current transaction
context.
|
Transaction transaction()
TransactionProvider.begin(TransactionContext)
.null
.TransactionContext transaction(Transaction transaction)
java.lang.Exception cause()
null
.TransactionContext cause(java.lang.Exception cause)
Copyright © 2014. All Rights Reserved.