Oracle10g JDBC

oracle.jdbc.xa
Class OracleXid

java.lang.Object
  extended byoracle.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

See Also:
Serialized Form

Field Summary
static java.lang.String BUILD_DATE
           
static int MAXBQUALSIZE
           
static int MAXGTRIDSIZE
           
static boolean PRIVATE_TRACE
           
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()
           
 int getFormatId()
           
 byte[] getGlobalTransactionId()
           
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

TRACE

public static final boolean TRACE
See Also:
Constant Field Values

PRIVATE_TRACE

public static final boolean PRIVATE_TRACE
See Also:
Constant Field Values

BUILD_DATE

public static final java.lang.String BUILD_DATE
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()
Specified by:
getFormatId in interface javax.transaction.xa.Xid

getGlobalTransactionId

public byte[] getGlobalTransactionId()
Specified by:
getGlobalTransactionId in interface javax.transaction.xa.Xid

getBranchQualifier

public byte[] getBranchQualifier()
Specified by:
getBranchQualifier in interface javax.transaction.xa.Xid

isLocalTransaction

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

Oracle10g JDBC

Copyright © 1998,2004, Oracle. All rights reserved