public interface TransactionContext extends Scope
TransactionProvider
.Modifier and Type | Method and Description |
---|---|
Exception |
cause()
The exception that has caused the rollback.
|
TransactionContext |
cause(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)
Exception cause()
null
.TransactionContext cause(Exception cause)
Copyright © 2017. All Rights Reserved.