Top Description Methods
org.jooq

public Interface TransactionContext

extends Scope
Known Direct Implementers
org.jooq.impl.DefaultTransactionContext
Imports
org.jetbrains.annotations.NotNull, .Nullable

A context object that is used to pass arguments to the various methods of TransactionProvider.

This type is a Scope with independent lifecycle and its own data() map.

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public @Nullable Exception

Returns:

The exception. May be null, in particular if the cause is a Throwable, in case of which causeThrowable() should be called.
cause
()

The exception that has caused the rollback.

public @NotNull TransactionContext
cause(Exception cause)

Set the exception that has caused the rollback to the current transaction context.

public @Nullable Throwable

Returns:

The throwable. May be null.
causeThrowable
()

The throwable that has caused the rollback.

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 be null.
transaction
()

A user-defined transaction object, possibly obtained from TransactionProvider#begin(TransactionContext).

public @NotNull TransactionContext
transaction(Transaction transaction)

Set the user-defined transaction object to the current transaction context.

Inherited from org.jooq.Scope:
configurationcreationTimedatadatadatadialectdslfamilysettings

Method Detail

causeback to summary
public @Nullable Exception cause()

The exception that has caused the rollback.

Returns:@Nullable Exception

The exception. May be null, in particular if the cause is a Throwable, in case of which causeThrowable() should be called.

Annotations
@Nullable
causeback to summary
public @NotNull TransactionContext cause(Exception cause)

Set the exception that has caused the rollback to the current transaction context.

Annotations
@NotNull
causeThrowableback to summary
public @Nullable Throwable causeThrowable()

The throwable that has caused the rollback.

Returns:@Nullable Throwable

The throwable. May be null.

Annotations
@Nullable
causeThrowableback to summary
public @NotNull TransactionContext causeThrowable(Throwable cause)

Set the throwable that has caused the rollback to the current transaction context.

Annotations
@NotNull
transactionback to summary
public @Nullable Transaction transaction()

A user-defined transaction object, possibly obtained from TransactionProvider#begin(TransactionContext).

Returns:@Nullable Transaction

The transaction object. May be null.

Annotations
@Nullable
transactionback to summary
public @NotNull TransactionContext transaction(Transaction transaction)

Set the user-defined transaction object to the current transaction context.

Annotations
@NotNull