org.apache.derbyTesting.functionTests.tests.jdbcapi
Class cdsXid

java.lang.Object
  extended by org.apache.derbyTesting.functionTests.tests.jdbcapi.cdsXid
All Implemented Interfaces:
java.io.Serializable, javax.transaction.xa.Xid

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


Field Summary
private  byte[] branch_id
           
private  int format_id
           
private  byte[] global_id
           
private static long serialVersionUID
           
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
cdsXid(int xid, byte b1, byte b2)
           
 
Method Summary
 byte[] getBranchQualifier()
          Obtain the transaction branch qualifier part of the Xid in a byte array.
 int getFormatId()
          Obtain the format id part of the Xid.
 byte[] getGlobalTransactionId()
          Obtain the global transaction identifier part of XID as an array of bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

format_id

private final int format_id

global_id

private byte[] global_id

branch_id

private byte[] branch_id
Constructor Detail

cdsXid

cdsXid(int xid,
       byte b1,
       byte b2)
Method Detail

getFormatId

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

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

getGlobalTransactionId

public byte[] getGlobalTransactionId()
Obtain the global transaction identifier part of XID as an array of bytes.

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

getBranchQualifier

public byte[] getBranchQualifier()
Obtain the transaction branch qualifier part of the Xid in a byte array.

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

Built on Thu 2009-11-26 18:42:53-0800, from revision 884739

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.