Module org.jooq
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 of TransactionProvider.
    Author:
    Lukas Eder
    • Method Detail

      • transaction

        TransactionContext transaction​(Transaction transaction)
        Set the user-defined transaction object to the current transaction context.
      • cause

        Exception cause()
        The exception that has caused the rollback.
        Returns:
        The exception. May be null, in particular if the cause is a Throwable, in case of which causeThrowable() should be called.
      • causeThrowable

        Throwable causeThrowable()
        The throwable that has caused the rollback.
        Returns:
        The throwable. May be null.
      • cause

        TransactionContext cause​(Exception cause)
        Set the exception that has caused the rollback to the current transaction context.
      • causeThrowable

        TransactionContext causeThrowable​(Throwable cause)
        Set the throwable that has caused the rollback to the current transaction context.