tyrex.tm.xid

Class LocalXid

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 intLOCAL_FORMAT_ID
The format identifier used by all local transactions.
Constructor Summary
LocalXid()
Construct a new unique transaction identifier.
LocalXid(String identifier, byte[] branch)
Used by XidUtils.
Method Summary
booleanequals(Object other)
byte[]getBranchQualifier()
intgetFormatId()
byte[]getGlobalTransactionId()
XidnewBranch()

Field Detail

LOCAL_FORMAT_ID

public static final int LOCAL_FORMAT_ID
The format identifier used by all local transactions.

Constructor Detail

LocalXid

public LocalXid()
Construct a new unique transaction identifier.

LocalXid

LocalXid(String identifier, 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.