jrunx.tyrex.tm.xid
Class ExternalXid

jrunx.tyrex.tm.xid.BaseXid
  |
  +--jrunx.tyrex.tm.xid.ExternalXid
All Implemented Interfaces:
java.io.Serializable

public final class ExternalXid
extends BaseXid

External transaction identifier. Used for all distributed transactions and branches created externally.

See Also:
Serialized Form

Fields inherited from class jrunx.tyrex.tm.xid.BaseXid
_string, EMPTY_ARRAY, FORMAT_ID, HEX_DIGITS, XID_PREFIX
 
Constructor Summary
ExternalXid(int formatId, byte[] global, byte[] branch)
          Construct a new transaction identifier.
ExternalXid(javax.transaction.xa.Xid xid)
          Constructs a new transaction identifier from an existing transaction identifier.
 
Method Summary
 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 jrunx.tyrex.tm.xid.BaseXid
createPrefix, hashCode, toString
 

Constructor Detail

ExternalXid

public ExternalXid(int formatId,
                   byte[] global,
                   byte[] branch)
Construct a new transaction identifier. The format identifier must not be -1, this value is reserved for the null transaction.
Parameters:
format - The format identifier
global - The global transaction identifier
branch - The branch qualifier

ExternalXid

public ExternalXid(javax.transaction.xa.Xid xid)
Constructs a new transaction identifier from an existing transaction identifier. This constructor is used when importing external transaction identiiers.
Parameters:
xid - The existing transaction identifier
Method Detail

getFormatId

public int getFormatId()

getGlobalTransactionId

public byte[] getGlobalTransactionId()

getBranchQualifier

public byte[] getBranchQualifier()

equals

public boolean equals(java.lang.Object other)

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: jrunx.tyrex.tm.xid.BaseXid
Returns:
A new transaction branch


Copyright � 2002 Macromedia Corporation. All Rights Reserved.