jrunx.tyrex.tm.xid
Class BaseXid
jrunx.tyrex.tm.xid.BaseXid
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BranchXid, ExternalXid, GlobalXid, LocalXid
- public abstract class BaseXid
- implements java.io.Serializable
Base implementation for all xids used by Tyrex (local, global, branch
and external). All xids have a string representation in the form
xid:-[][-].
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.String |
_string
The textual representation of the transaction identifier. |
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 java.lang.String |
XID_PREFIX
Prefix for textual identifier. |
|
Method Summary |
protected static char[] |
createPrefix(int formatId)
|
int |
hashCode()
|
abstract javax.transaction.xa.Xid |
newBranch()
Creates a new transaction branch. |
java.lang.String |
toString()
|
XID_PREFIX
public static final java.lang.String XID_PREFIX
- Prefix for textual identifier.
FORMAT_ID
public static final int FORMAT_ID
- Format identifier for all internal Xids or newly created Xids.
EMPTY_ARRAY
protected static final byte[] EMPTY_ARRAY
- The default branch is always an empty byte array.
HEX_DIGITS
protected static final char[] HEX_DIGITS
- Efficient mapping from 4 bit value to lower case hexadecimal digit.
_string
protected java.lang.String _string
- The textual representation of the transaction identifier.
BaseXid
public BaseXid()
toString
public java.lang.String toString()
hashCode
public int hashCode()
newBranch
public abstract javax.transaction.xa.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
createPrefix
protected static final char[] createPrefix(int formatId)
Copyright � 2002 Macromedia Corporation. All Rights Reserved.