Top Fields Constructors Methods
org.apache.derby.impl.drda

pack-priv Class DRDAXid

extends Object
implements Xid
Class Inheritance
All Implemented Interfaces
javax.transaction.xa.Xid
Imports
javax.transaction.xa.Xid

Field Summary

Modifier and TypeField and Description
private final byte[]
private final int
private final byte[]

Constructor Summary

AccessConstructor and Description
pack-priv
DRDAXid(int formatid, byte[] globalid, byte[] branchid)

Method Summary

Modifier and TypeMethod and Description
private static String

Returns:

hex string representation of byte array
convertToHexString
(byte[]
buffer to convert
buf
)

convert byte array to a Hex string

public byte[]

Returns:

A byte array containing the branch qualifier of the transaction.
getBranchQualifier
()

Implements javax.transaction.xa.Xid.getBranchQualifier.

Obtain the transaction branch qualifier part of the Xid in a byte array.
public int

Returns:

Format identifier. O means the OSI CCR format.
getFormatId
()

Implements javax.transaction.xa.Xid.getFormatId.

Obtain the format id part of the Xid.
public byte[]

Returns:

A byte array containing the global transaction identifier.
getGlobalTransactionId
()

Implements javax.transaction.xa.Xid.getGlobalTransactionId.

Obtain the global transaction identifier part of XID as an array of bytes.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

branch_idback to summary
private final byte[] branch_id
format_idback to summary
private final int format_id
global_idback to summary
private final byte[] global_id

Constructor Detail

DRDAXidback to summary
pack-priv DRDAXid(int formatid, byte[] globalid, byte[] branchid)

Method Detail

convertToHexStringback to summary
private static String convertToHexString(byte[] buf)

convert byte array to a Hex string

Parameters
buf:byte[]

buffer to convert

Returns:String

hex string representation of byte array

getBranchQualifierback to summary
public byte[] getBranchQualifier()

Implements javax.transaction.xa.Xid.getBranchQualifier.

Obtain the transaction branch qualifier part of the Xid in a byte array.

Returns:byte[]

A byte array containing the branch qualifier of the transaction.

getFormatIdback to summary
public int getFormatId()

Implements javax.transaction.xa.Xid.getFormatId.

Obtain the format id part of the Xid.

Returns:int

Format identifier. O means the OSI CCR format.

getGlobalTransactionIdback to summary
public byte[] getGlobalTransactionId()

Implements javax.transaction.xa.Xid.getGlobalTransactionId.

Obtain the global transaction identifier part of XID as an array of bytes.

Returns:byte[]

A byte array containing the global transaction identifier.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.