tyrex.tm.xid
Class GlobalXid

java.lang.Object
  |
  +--tyrex.tm.xid.BaseXid
        |
        +--tyrex.tm.xid.GlobalXid
All Implemented Interfaces:
javax.transaction.xa.Xid

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 int GLOBAL_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.
 
Fields inherited from class tyrex.tm.xid.BaseXid
_string, EMPTY_ARRAY, FORMAT_ID, HEX_DIGITS, XID_PREFIX
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
  GlobalXid()
          Construct a new global transaction identifier.
(package private) GlobalXid(java.lang.String identifier, byte[] global)
          Used by XidUtils.
 
Method Summary
(package private) static void ()
           
 boolean equals(java.lang.Object other)
           
 byte[] getBranchQualifier()
           
 int getFormatId()
           
 byte[] getGlobalTransactionId()
           
 javax.transaction.xa.Xid newBranch()
          Creates a new transaction branch.
 
Methods inherited from class tyrex.tm.xid.BaseXid
createPrefix, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

XID_PREFIX_ARRAY

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

GLOBAL_FORMAT_ID

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

GlobalXid

public GlobalXid()
Construct a new global transaction identifier.

GlobalXid

GlobalXid(java.lang.String identifier,
          byte[] global)
Used by XidUtils.
Method Detail

static void ()

getFormatId

public int getFormatId()

getGlobalTransactionId

public byte[] getGlobalTransactionId()

getBranchQualifier

public byte[] getBranchQualifier()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

newBranch

public javax.transaction.xa.Xid newBranch()
Description copied from class: BaseXid
Creates a new transaction branch. A transaction branch has the same format and global transaction identifier as this transaction identifier, but a new unique branch qualifier (never empty).
Overrides:
newBranch in class BaseXid
Following copied from class: tyrex.tm.xid.BaseXid
Returns:
A new transaction branch


Intalio Inc. (C) 1999-2001. All rights reserved.