tyrex.tm.xid

Class ExternalXid

public final class ExternalXid extends BaseXid

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

Version: $Revision: 1.2 $

Author: Assaf Arkin

Constructor Summary
ExternalXid(int formatId, byte[] global, byte[] branch)
Construct a new transaction identifier.
ExternalXid(Xid xid)
Constructs a new transaction identifier from an existing transaction identifier.
ExternalXid(String identifier, int formatId, byte[] global, byte[] branch)
Used by XidUtils.
Method Summary
booleanequals(Object other)
byte[]getBranchQualifier()
intgetFormatId()
byte[]getGlobalTransactionId()
XidnewBranch()

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(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

ExternalXid

ExternalXid(String identifier, int formatId, byte[] global, byte[] branch)
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.