TransactionProvider.
This type is a Scope with independent lifecycle and its own
data() map.
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable Exception | Returns: The exception. May benull, in particular if the
cause is a Throwable, in case of which
causeThrowable() should be called.The exception that has caused the rollback. |
| public @NotNull TransactionContext | |
| public @Nullable Throwable | |
| public @NotNull TransactionContext | causeThrowable(Throwable cause)
Set the throwable that has caused the rollback to the current transaction context. |
| public @Nullable Transaction | Returns: The transaction object. May benull.A user-defined transaction object, possibly obtained from
|
| public @NotNull TransactionContext | transaction(Transaction transaction)
Set the user-defined transaction object to the current transaction context. |
| cause | back to summary |
|---|---|
| public @Nullable Exception cause() The exception that has caused the rollback.
| |
| cause | back to summary |
|---|---|
| public @NotNull TransactionContext cause(Exception cause) Set the exception that has caused the rollback to the current transaction context.
| |
| causeThrowable | back to summary |
|---|---|
| public @Nullable Throwable causeThrowable() The throwable that has caused the rollback. | |
| causeThrowable | back to summary |
|---|---|
| public @NotNull TransactionContext causeThrowable(Throwable cause) Set the throwable that has caused the rollback to the current transaction context.
| |
| transaction | back to summary |
|---|---|
| public @Nullable Transaction transaction() A user-defined transaction object, possibly obtained from
| |
| transaction | back to summary |
|---|---|
| public @NotNull TransactionContext transaction(Transaction transaction) Set the user-defined transaction object to the current transaction context.
| |