tyrex.tm.xid
Class BaseXid
public abstract
class
BaseXid
extends Object
implements Xid
Base implementation for all xids used by Tyrex (local, global, branch
and external). All xids have a string representation in the form
xid:-[][-].
Version: $Revision: 1.2 $
Author: Assaf Arkin
Field Summary |
protected static byte[] | EMPTY_ARRAY
The default branch is always an empty byte array. |
static int | FORMAT_ID
Format identifier for all internal Xids or newly created Xids. |
protected static char[] | HEX_DIGITS
Efficient mapping from 4 bit value to lower case hexadecimal digit. |
static String | XID_PREFIX
Prefix for textual identifier. |
protected String | _string
The textual representation of the transaction identifier. |
protected static final byte[] EMPTY_ARRAY
The default branch is always an empty byte array.
public static final int FORMAT_ID
Format identifier for all internal Xids or newly created Xids.
protected static final char[] HEX_DIGITS
Efficient mapping from 4 bit value to lower case hexadecimal digit.
public static final String XID_PREFIX
Prefix for textual identifier.
protected String _string
The textual representation of the transaction identifier.
protected static final char[] createPrefix(int formatId)
public int hashCode()
public abstract Xid newBranch()
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).
Returns: A new transaction branch
public String toString()
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.