| java.lang.Object org.jboss.tm.XidImpl
Constructor Summary | |
public | XidImpl(int formatId, byte[] globalId, byte[] branchId, int hash, long localId) Create a new instance. | | XidImpl(byte[] globalId, byte[] branchId, int hash, long localId) Create a new instance with JBOSS_FORMAT_ID. | public | XidImpl(XidImpl xidImpl, byte[] branchId) Create a new branch of an existing global transaction ID. |
JBOSS_FORMAT_ID | final public static int JBOSS_FORMAT_ID(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
XidImpl | public XidImpl(int formatId, byte[] globalId, byte[] branchId, int hash, long localId)(Code) | | Create a new instance.
|
XidImpl | XidImpl(byte[] globalId, byte[] branchId, int hash, long localId)(Code) | | Create a new instance with JBOSS_FORMAT_ID.
|
XidImpl | public XidImpl(XidImpl xidImpl, byte[] branchId)(Code) | | Create a new branch of an existing global transaction ID.
Parameters: xidImpl - The transaction ID to create a new branch of. Parameters: branchId - The ID of the new branch. |
equals | public boolean equals(Object obj)(Code) | | Compare for equality.
Instances are considered equal if they are both instances of XidImpl,
and if they have the same format id, the same global transaction id
and the same transaction branch qualifier.
|
getBranchQualifier | public byte[] getBranchQualifier()(Code) | | Return the branch qualifier of this transaction.
|
getFormatId | public int getFormatId()(Code) | | Return the format identifier of this transaction.
The format identifier augments the global id and specifies
how the global id and branch qualifier should be interpreted.
|
getGlobalTransactionId | public byte[] getGlobalTransactionId()(Code) | | Return the global transaction id of this transaction.
|
getInternalGlobalTransactionId | byte[] getInternalGlobalTransactionId()(Code) | | Return the global transaction id of this transaction.
Unlike the
XidImpl.getGlobalTransactionId() method, this one
returns a reference to the global id byte array that may not
be changed.
|
getLocalId | public LocalId getLocalId()(Code) | | Return a LocalId instance that identifies this transaction
within the JBoss server.
|
getLocalIdValue | public long getLocalIdValue()(Code) | | Return the local id that identifies this transaction
within the JBoss server.
|
getTrulyGlobalId | public GlobalId getTrulyGlobalId()(Code) | | Return a GlobalId instance that identifies this transaction
in a distributed environment.
|
getTrulyGlobalIdsEnabled | public static boolean getTrulyGlobalIdsEnabled()(Code) | | Getter for class variable trulyGlobalIdsEnabled.
|
hashCode | public int hashCode()(Code) | | |
sameTransaction | public boolean sameTransaction(XidImpl other)(Code) | | Compare for same transaction.
Instances represent the same transaction if they have the same
format id and global transaction id.
|
setTrulyGlobalIdsEnabled | public static void setTrulyGlobalIdsEnabled(boolean newValue)(Code) | | Setter for class variable trulyGlobalIdsEnabled.
|
toString | static String toString(Xid id)(Code) | | Return a string that describes any Xid instance.
|
|
|