Package org.jooq.impl

Class ThreadLocalTransactionProvider

  • All Implemented Interfaces:
    TransactionProvider

    public class ThreadLocalTransactionProvider
    extends java.lang.Object
    implements TransactionProvider
    A TransactionProvider that implements thread-bound transaction semantics.

    Use this TransactionProvider if your transactions are thread-bound, meaning that a transaction and its underlying Connection will never leave the thread that started the transaction.

    When this TransactionProvider is used, users must pass their custom ConnectionProvider implementations to this TransactionProvider, instead of passing it to the Configuration.

    Author:
    Lukas Eder