Package com.arjuna.ats.jta.xa
Class XidImple
java.lang.Object
com.arjuna.ats.jta.xa.XidImple
- All Implemented Interfaces:
Serializable,Xid
Implementation of javax.transaction.xa.Xid.
- Since:
- JTS 1.2.4.
- Version:
- $Id: XidImple.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
- See Also:
-
Field Summary
FieldsFields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidbooleanIs the specified object equal to this one?booleanprotected static intgenerateHash(int hash, byte[] bytes, int start, int length) Generate a hash code for the specified bytes.byte[]intbyte[]These operations critically rely on the fact that we unpack the array in the order we packed it!protected intgetHash(com.arjuna.ats.internal.jta.xa.XID xid) Generate the hash code for the xid.final Uidfinal com.arjuna.ats.internal.jta.xa.XIDgetXID()inthashCode()Return the hash code for this Xid.final booleanisSameTransaction(Xid xid) static final voidpack(OutputObjectState os, Xid xid) final booleantoString()static final Xidfinal boolean
-
Field Details
-
_theXid
protected com.arjuna.ats.internal.jta.xa.XID _theXid
-
-
Constructor Details
-
XidImple
public XidImple() -
XidImple
-
XidImple
-
XidImple
-
XidImple
-
XidImple
-
XidImple
public XidImple(com.arjuna.ats.internal.jta.xa.XID x)
-
-
Method Details
-
isSameTransaction
-
getFormatId
public int getFormatId()- Specified by:
getFormatIdin interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()These operations critically rely on the fact that we unpack the array in the order we packed it!- Specified by:
getGlobalTransactionIdin interfaceXid
-
getBranchQualifier
public byte[] getBranchQualifier()- Specified by:
getBranchQualifierin interfaceXid
-
getTransactionUid
-
getXID
public final com.arjuna.ats.internal.jta.xa.XID getXID() -
copy
-
equals
-
packInto
-
unpackFrom
-
pack
- Throws:
IOException
-
unpack
- Throws:
IOException
-
toString
-
equals
Is the specified object equal to this one? -
hashCode
public int hashCode()Return the hash code for this Xid. -
getHash
protected int getHash(com.arjuna.ats.internal.jta.xa.XID xid) Generate the hash code for the xid.- Parameters:
xid- The xid.- Returns:
- The hash code.
-
generateHash
protected static int generateHash(int hash, byte[] bytes, int start, int length) Generate a hash code for the specified bytes.- Parameters:
hash- The initial hash.bytes- The bytes to include in the hash.- Returns:
- The new hash code.
-