Top Fields Constructors Methods
org.jooq.impl

pack-priv Class DefaultTransactionContext

extends AbstractScope
implements TransactionContext
Class Inheritance
All Implemented Interfaces
org.jooq.TransactionContext, org.jooq.Scope
Imports
org.jooq.Configuration, .Transaction, .TransactionContext

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv Throwable
pack-priv Transaction
Inherited from org.jooq.impl.AbstractScope:
configurationcreationTimedata

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final Exception
cause()

Implements org.jooq.TransactionContext.cause.

The exception that has caused the rollback.
public final TransactionContext
cause(Exception c)

Implements org.jooq.TransactionContext.cause.

Set the exception that has caused the rollback to the current transaction context.
public final Throwable
causeThrowable()

Implements org.jooq.TransactionContext.causeThrowable.

The throwable that has caused the rollback.
public final TransactionContext
causeThrowable(Throwable c)

Implements org.jooq.TransactionContext.causeThrowable.

Set the throwable that has caused the rollback to the current transaction context.
public final Transaction
transaction()

Implements org.jooq.TransactionContext.transaction.

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

Implements org.jooq.TransactionContext.transaction.

Set the user-defined transaction object to the current transaction context.
Inherited from org.jooq.impl.AbstractScope:
configurationcreationTimedatadatadatadialectdslfamilysettings

Field Detail

causeback to summary
pack-priv Throwable cause
transactionback to summary
pack-priv Transaction transaction

Constructor Detail

DefaultTransactionContextback to summary
pack-priv DefaultTransactionContext(Configuration configuration)

Method Detail

causeback to summary
public final Exception cause()

Implements org.jooq.TransactionContext.cause.

Doc from org.jooq.TransactionContext.cause.

The exception that has caused the rollback.

Returns:Exception

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

Annotations
@Override
causeback to summary
public final TransactionContext cause(Exception c)

Implements org.jooq.TransactionContext.cause.

Doc from org.jooq.TransactionContext.cause.

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

Annotations
@Override
causeThrowableback to summary
public final Throwable causeThrowable()

Implements org.jooq.TransactionContext.causeThrowable.

Doc from org.jooq.TransactionContext.causeThrowable.

The throwable that has caused the rollback.

Returns:Throwable

The throwable. May be null.

Annotations
@Override
causeThrowableback to summary
public final TransactionContext causeThrowable(Throwable c)

Implements org.jooq.TransactionContext.causeThrowable.

Doc from org.jooq.TransactionContext.causeThrowable.

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

Annotations
@Override
transactionback to summary
public final Transaction transaction()

Implements org.jooq.TransactionContext.transaction.

Doc from org.jooq.TransactionContext.transaction.

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

Returns:Transaction

The transaction object. May be null.

Annotations
@Override
transactionback to summary
public final TransactionContext transaction(Transaction t)

Implements org.jooq.TransactionContext.transaction.

Doc from org.jooq.TransactionContext.transaction.

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

Annotations
@Override