Package org.jooq
Interface TransactionContext
-
- All Superinterfaces:
Scope
public interface TransactionContext extends Scope
A context object that is used to pass arguments to the various methods ofTransactionProvider.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Exceptioncause()The exception that has caused the rollback.TransactionContextcause(java.lang.Exception cause)Set the exception that has caused the rollback to the current transaction context.java.lang.ThrowablecauseThrowable()The throwable that has caused the rollback.TransactionContextcauseThrowable(java.lang.Throwable cause)Set the throwable that has caused the rollback to the current transaction context.Transactiontransaction()A user-defined transaction object, possibly obtained fromTransactionProvider.begin(TransactionContext).TransactionContexttransaction(Transaction transaction)Set the user-defined transaction object to the current transaction context.
-
-
-
Method Detail
-
transaction
Transaction transaction()
A user-defined transaction object, possibly obtained fromTransactionProvider.begin(TransactionContext).- Returns:
- The transaction object. May be
null.
-
transaction
TransactionContext transaction(Transaction transaction)
Set the user-defined transaction object to the current transaction context.
-
cause
java.lang.Exception cause()
The exception that has caused the rollback.- Returns:
- The exception. May be
null, in particular if the cause is aThrowable, in case of whichcauseThrowable()should be called.
-
causeThrowable
java.lang.Throwable causeThrowable()
The throwable that has caused the rollback.- Returns:
- The throwable. May be
null.
-
cause
TransactionContext cause(java.lang.Exception cause)
Set the exception that has caused the rollback to the current transaction context.
-
causeThrowable
TransactionContext causeThrowable(java.lang.Throwable cause)
Set the throwable that has caused the rollback to the current transaction context.
-
-