[jOOQ/jOOQ#17622] Add TransactionContext.result(): Object to allow for accessing the result of a transactionResult() call from a TransactionListener
This commit is contained in:
parent
aa4fe7e936
commit
eb9a4368fc
@ -67,6 +67,27 @@ public interface TransactionContext extends Scope {
|
||||
@NotNull
|
||||
TransactionContext transaction(Transaction transaction);
|
||||
|
||||
/**
|
||||
* The result of a {@link TransactionalCallable} or
|
||||
* {@link ContextTransactionalCallable}, if the transaction has completed
|
||||
* successfully.
|
||||
*
|
||||
* @return The result. May be <code>null</code> if the transaction hasn't
|
||||
* completed yet, or if there was no result (e.g. in a
|
||||
* {@link TransactionalRunnable} or
|
||||
* {@link ContextTransactionalRunnable}), or if the result is
|
||||
* <code>null</code>.
|
||||
*/
|
||||
@Nullable
|
||||
Object result();
|
||||
|
||||
/**
|
||||
* Set the result of the {@link TransactionalCallable} or
|
||||
* {@link ContextTransactionalCallable}.
|
||||
*/
|
||||
@NotNull
|
||||
TransactionContext result(Object result);
|
||||
|
||||
/**
|
||||
* The exception that has caused the rollback.
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user