org.apache.cayenne.access

## Class Transaction

- java.lang.Object
- - org.apache.cayenne.access.Transaction

- Deprecated.
  since 4.0. For manual transaction management use `BaseTransaction` static methods or better - `ServerRuntime.performInTransaction(org.apache.cayenne.tx.TransactionalOperation)` . Also note that since 4.0 an actual Transaction is an interface located in a different package: `Transaction`

      @Deprecated
      public abstract class Transaction
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Transaction()` Deprecated.

  - ### Method Summary

    All Methods Static Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `bindThreadTransaction(Transaction transaction)` Deprecated.
    `static Transaction` | `getThreadTransaction()` Deprecated.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Transaction

          public Transaction()

      Deprecated.

  - ### Method Detail

    - #### bindThreadTransaction

          @Deprecated
          public static void bindThreadTransaction(Transaction transaction)

      Deprecated.
      Binds a Transaction to the current thread.
      Since:
        1.2

    - #### getThreadTransaction

          @Deprecated
          public static Transaction getThreadTransaction()

      Deprecated.
      Returns a Transaction associated with the current thread, or null if there is no such Transaction.
      Since:
        1.2

Copyright © 2001–2018 Apache Cayenne. All rights reserved.