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.
|
java.lang.Throwable |
causeThrowable()
The throwable that has caused the rollback.
|
TransactionContext |
causeThrowable(java.lang.Throwable cause)
Set the throwable 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, in particular if the
cause is a Throwable, in case of which
causeThrowable() should be called.java.lang.Throwable causeThrowable()
null.TransactionContext cause(java.lang.Exception cause)
TransactionContext causeThrowable(java.lang.Throwable cause)
Copyright © 2018. All Rights Reserved.