## Uses of Interface
javax.transaction.Transaction

- Packages that use Transaction
  Package | Description
  --- | ---
  javax.transaction | Provides the API that defines the contract between the transaction manager and the various parties involved in a distributed transaction namely : resource manager, application, and application server.

- - ### Uses of Transaction in javax.transaction

    Methods in javax.transaction that return Transaction
    Modifier and Type | Method and Description
    --- | ---
    `Transaction` | TransactionManager.`getTransaction()` Get the transaction object that represents the transaction context of the calling thread.
    `Transaction` | TransactionManager.`suspend()` Suspend the transaction currently associated with the calling thread and return a Transaction object that represents the transaction context being suspended.

    Methods in javax.transaction with parameters of type Transaction
    Modifier and Type | Method and Description
    --- | ---
    `void` | TransactionManager.`resume(Transaction tobj)` Resume the transaction context association of the calling thread with the transaction represented by the supplied Transaction object.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.