tyrex.tm.xid
Class BranchXid
java.lang.Object
|
+--tyrex.tm.xid.BaseXid
|
+--tyrex.tm.xid.BranchXid
- All Implemented Interfaces:
- javax.transaction.xa.Xid
- public final class BranchXid
- extends BaseXid
Global transaction identifier with a branch qualifier. Used for all
distributed transaction branches created locally. The format identifier
is always the same.
- Version:
- $Revision: 1.2 $
- Author:
- Assaf Arkin
Fields inherited from interface javax.transaction.xa.Xid |
MAXBQUALSIZE, MAXGTRIDSIZE |
Constructor Summary |
(package private) |
BranchXid(byte[] global,
byte[] branch)
Construct a new transaction branch identifier. |
(package private) |
BranchXid(java.lang.String identifier,
byte[] global,
byte[] branch)
Used by XidUtils . |
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BranchXid
BranchXid(byte[] global,
byte[] branch)
- Construct a new transaction branch identifier.
- Parameters:
global
- The global transaction identifierbranch
- The branch qualifier
BranchXid
BranchXid(java.lang.String identifier,
byte[] global,
byte[] branch)
- Used by
XidUtils
.
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.