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