org.apache.derby.impl.drda
Class DRDAXid

java.lang.Object
  extended by org.apache.derby.impl.drda.DRDAXid
All Implemented Interfaces:
javax.transaction.xa.Xid

 class DRDAXid
extends java.lang.Object
implements javax.transaction.xa.Xid


Field Summary
private  byte[] branch_id
           
private  int format_id
           
private  byte[] global_id
           
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
DRDAXid(int formatid, byte[] globalid, byte[] branchid)
           
 
Method Summary
private static java.lang.String convertToHexString(byte[] buf)
          convert byte array to a Hex string
 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

format_id

private final int format_id

global_id

private final byte[] global_id

branch_id

private final byte[] branch_id
Constructor Detail

DRDAXid

DRDAXid(int formatid,
        byte[] globalid,
        byte[] branchid)
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.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

convertToHexString

private static java.lang.String convertToHexString(byte[] buf)
convert byte array to a Hex string

Parameters:
buf - buffer to convert
Returns:
hex string representation of byte array

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

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