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) |
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
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(String identifier, int formatId, byte[] global, byte[] branch)
public boolean equals(Object other)
public byte[] getBranchQualifier()
public int getFormatId()
public byte[] getGlobalTransactionId()
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.