Oracle JDBC API Reference
11g Release 2 ("11.2.0.3.0")

oracle.jdbc.xa
Class OracleXid

java.lang.Object
  extended by oracle.jdbc.xa.OracleXid
All Implemented Interfaces:
java.io.Serializable, javax.transaction.xa.Xid

public class OracleXid
extends java.lang.Object
implements javax.transaction.xa.Xid, java.io.Serializable

The OracleXid class:

See Also:
Serialized Form

Field Summary
static java.lang.String BUILD_DATE
           
static int MAXBQUALSIZE
           
static int MAXGTRIDSIZE
           
static boolean TRACE
           
 
Constructor Summary
OracleXid(int fId, byte[] gId, byte[] bId)
          OracleXid() -- The constructor that constructs an OracleXid with given formatId, global transacrion Id and branch qualifier.
OracleXid(int fId, byte[] gId, byte[] bId, byte[] context)
          OracleXid() -- The constructor that constructs an OracleXid with given formatId, global transacrion Id and branch qualifier, and transaction context.
 
Method Summary
 byte[] getBranchQualifier()
          getBranchQualifier() -- Obtain the txn branch qualifier of the XID
 int getFormatId()
          getFormatId() -- Obtain the format identifier part of the Xid.
 byte[] getGlobalTransactionId()
          getGlobalTransactionId() -- Obtain the global txn id of the XID
static boolean isLocalTransaction(javax.transaction.xa.Xid xid)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXGTRIDSIZE

public static final int MAXGTRIDSIZE
See Also:
Constant Field Values

MAXBQUALSIZE

public static final int MAXBQUALSIZE
See Also:
Constant Field Values

BUILD_DATE

public static final java.lang.String BUILD_DATE
See Also:
Constant Field Values

TRACE

public static final boolean TRACE
See Also:
Constant Field Values
Constructor Detail

OracleXid

public OracleXid(int fId,
                 byte[] gId,
                 byte[] bId)
          throws javax.transaction.xa.XAException
OracleXid() -- The constructor that constructs an OracleXid with given formatId, global transacrion Id and branch qualifier.

Parameters:
fId - format ID
gId - global transaction ID (no copy performed)
bId - branch Qualifier (no copy performed)
Throws:
javax.transaction.xa.XAException - if the size of gId or bId is more than 64 bytes

OracleXid

public OracleXid(int fId,
                 byte[] gId,
                 byte[] bId,
                 byte[] context)
          throws javax.transaction.xa.XAException
OracleXid() -- The constructor that constructs an OracleXid with given formatId, global transacrion Id and branch qualifier, and transaction context.

Parameters:
fId - format ID
gId - global transaction ID (no copy performed)
bId - branch Qualifier (no copy performed)
context - transation context (no copy performed)
Throws:
javax.transaction.xa.XAException - if the size of gId or bId is more than 64 bytes
Method Detail

getFormatId

public int getFormatId()
getFormatId() -- Obtain the format identifier part of the Xid.

Specified by:
getFormatId in interface javax.transaction.xa.Xid
Returns:
Format identifier. 0 means the OSI CCR format.

getGlobalTransactionId

public byte[] getGlobalTransactionId()
getGlobalTransactionId() -- Obtain the global txn id of the XID

Specified by:
getGlobalTransactionId in interface javax.transaction.xa.Xid
Returns:
A byte array containing the global transaction identifier.

getBranchQualifier

public byte[] getBranchQualifier()
getBranchQualifier() -- Obtain the txn branch qualifier of the XID

Specified by:
getBranchQualifier in interface javax.transaction.xa.Xid
Returns:
A byte array containing the branch qualifier of the transaction.

isLocalTransaction

public static final boolean isLocalTransaction(javax.transaction.xa.Xid xid)

Oracle JDBC API Reference
11g Release 2 ("11.2.0.3.0")

Copyright © 1998, 2007, Oracle. All rights reserved.