tyrex.tm.xid

Class GlobalXid

public final class GlobalXid extends BaseXid

Global transaction identifier. Used for all distributed transactions created locally. The format identifier is always the same, the branch qualifier is always empty.

Version: $Revision: 1.2 $

Author: Assaf Arkin

Field Summary
protected static intGLOBAL_FORMAT_ID
The format identifier used by all local transactions.
protected static char[]XID_PREFIX_ARRAY
The XID_PREFIX and XID_FORMAT as a character array.
Constructor Summary
GlobalXid()
Construct a new global transaction identifier.
GlobalXid(String identifier, byte[] global)
Used by XidUtils.
Method Summary
booleanequals(Object other)
byte[]getBranchQualifier()
intgetFormatId()
byte[]getGlobalTransactionId()
XidnewBranch()

Field Detail

GLOBAL_FORMAT_ID

protected static final int GLOBAL_FORMAT_ID
The format identifier used by all local transactions.

XID_PREFIX_ARRAY

protected static final char[] XID_PREFIX_ARRAY
The XID_PREFIX and XID_FORMAT as a character array.

Constructor Detail

GlobalXid

public GlobalXid()
Construct a new global transaction identifier.

GlobalXid

GlobalXid(String identifier, byte[] global)
Used by XidUtils.

Method Detail

equals

public boolean equals(Object other)

getBranchQualifier

public byte[] getBranchQualifier()

getFormatId

public int getFormatId()

getGlobalTransactionId

public byte[] getGlobalTransactionId()

newBranch

public Xid newBranch()
Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.