tyrex.tm.xid
Class LocalXid
java.lang.Object
tyrex.tm.xid.BaseXid
tyrex.tm.xid.LocalXid
- All Implemented Interfaces:
- javax.transaction.xa.Xid
- public final class LocalXid
- extends BaseXid
Local transaction identifier. Used by resource managers for local
transactions. A local transaction identifier has an empty global
transaction identifier and unique branch qualifier.
- Version:
- $Revision: 1.2 $
- Author:
- Assaf Arkin
Field Summary |
static int |
LOCAL_FORMAT_ID
The format identifier used by all local transactions. |
Fields inherited from interface javax.transaction.xa.Xid |
MAXBQUALSIZE, MAXGTRIDSIZE |
Constructor Summary |
|
LocalXid()
Construct a new unique transaction identifier. |
(package private) |
LocalXid(java.lang.String identifier,
byte[] branch)
Used by XidUtils . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LOCAL_FORMAT_ID
public static final int LOCAL_FORMAT_ID
- The format identifier used by all local transactions.
- See Also:
- Constant Field Values
LocalXid
public LocalXid()
- Construct a new unique transaction identifier.
LocalXid
LocalXid(java.lang.String identifier,
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)
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).
- Specified by:
newBranch
in class BaseXid
- Returns:
- A new transaction branch
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.