## Uses of Interface
javax.transaction.xa.Xid

- Packages that use Xid
  Package | Description
  --- | ---
  javax.resource.spi | The javax.resource.spi package contains APIs for the system contracts defined in the Java EE Connector Architecture specification.
  javax.resource.spi.work | This package contains APIs for the Work Management, Generic and Security Work Context contracts.
  javax.transaction.xa | Provides the API that defines the contract between the transaction manager and the resource manager, which allows the transaction manager to enlist and delist resource objects (supplied by the resource manager driver) in JTA transactions.

- - ### Uses of Xid in javax.resource.spi

    Methods in javax.resource.spi that return Xid
    Modifier and Type | Method and Description
    --- | ---
    `Xid[]` | XATerminator.`recover(int flag)` Obtains a list of prepared transaction branches from a resource manager.

    Methods in javax.resource.spi with parameters of type Xid
    Modifier and Type | Method and Description
    --- | ---
    `void` | XATerminator.`commit(Xid xid, boolean onePhase)` Commits the global transaction specified by xid.
    `void` | XATerminator.`forget(Xid xid)` Tells the resource manager to forget about a heuristically completed transaction branch.
    `int` | XATerminator.`prepare(Xid xid)` Ask the resource manager to prepare for a transaction commit of the transaction specified in xid.
    `void` | XATerminator.`rollback(Xid xid)` Informs the resource manager to roll back work done on behalf of a transaction branch.

  - ### Uses of Xid in javax.resource.spi.work

    Methods in javax.resource.spi.work that return Xid
    Modifier and Type | Method and Description
    --- | ---
    `Xid` | ExecutionContext.`getXid()`

    Methods in javax.resource.spi.work with parameters of type Xid
    Modifier and Type | Method and Description
    --- | ---
    `void` | ExecutionContext.`setXid(Xid xid)` set a transaction context.

  - ### Uses of Xid in javax.transaction.xa

    Methods in javax.transaction.xa that return Xid
    Modifier and Type | Method and Description
    --- | ---
    `Xid[]` | XAResource.`recover(int flag)` Obtains a list of prepared transaction branches from a resource manager.

    Methods in javax.transaction.xa with parameters of type Xid
    Modifier and Type | Method and Description
    --- | ---
    `void` | XAResource.`commit(Xid xid, boolean onePhase)` Commits the global transaction specified by xid.
    `void` | XAResource.`end(Xid xid, int flags)` Ends the work performed on behalf of a transaction branch.
    `void` | XAResource.`forget(Xid xid)` Tells the resource manager to forget about a heuristically completed transaction branch.
    `int` | XAResource.`prepare(Xid xid)` Ask the resource manager to prepare for a transaction commit of the transaction specified in xid.
    `void` | XAResource.`rollback(Xid xid)` Informs the resource manager to roll back work done on behalf of a transaction branch.
    `void` | XAResource.`start(Xid xid, int flags)` Starts work on behalf of a transaction branch specified in `xid`.

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