public class XidImple
extends java.lang.Object
implements javax.transaction.xa.Xid, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected com.arjuna.ats.internal.jta.xa.XID |
_theXid |
Constructor and Description |
---|
XidImple() |
XidImple(AtomicAction c) |
XidImple(Uid id)
Deprecated.
This is only used by test code
|
XidImple(Uid id,
boolean branch,
java.lang.Integer eisName) |
XidImple(javax.transaction.xa.Xid xid) |
XidImple(com.arjuna.ats.internal.jta.xa.XID x) |
XidImple(javax.transaction.xa.Xid xid,
boolean branch,
java.lang.Integer eisName) |
Modifier and Type | Method and Description |
---|---|
void |
copy(javax.transaction.xa.Xid xid) |
boolean |
equals(java.lang.Object obj)
Is the specified object equal to this one?
|
boolean |
equals(javax.transaction.xa.Xid xid) |
protected static int |
generateHash(int hash,
byte[] bytes,
int start,
int length)
Generate a hash code for the specified bytes.
|
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId()
These operations critically rely on the fact that we unpack the array in
the order we packed it!
|
protected int |
getHash(com.arjuna.ats.internal.jta.xa.XID xid)
Generate the hash code for the xid.
|
Uid |
getTransactionUid() |
com.arjuna.ats.internal.jta.xa.XID |
getXID() |
int |
hashCode()
Return the hash code for this Xid.
|
boolean |
isSameTransaction(javax.transaction.xa.Xid xid) |
static void |
pack(OutputObjectState os,
javax.transaction.xa.Xid xid) |
boolean |
packInto(OutputObjectState os) |
java.lang.String |
toString() |
static javax.transaction.xa.Xid |
unpack(InputObjectState os) |
boolean |
unpackFrom(InputObjectState os) |
public XidImple()
public XidImple(javax.transaction.xa.Xid xid)
public XidImple(AtomicAction c)
public XidImple(javax.transaction.xa.Xid xid, boolean branch, java.lang.Integer eisName)
public XidImple(Uid id)
public XidImple(Uid id, boolean branch, java.lang.Integer eisName)
public XidImple(com.arjuna.ats.internal.jta.xa.XID x)
public final boolean isSameTransaction(javax.transaction.xa.Xid xid)
public int getFormatId()
getFormatId
in interface javax.transaction.xa.Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface javax.transaction.xa.Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface javax.transaction.xa.Xid
public final Uid getTransactionUid()
public final com.arjuna.ats.internal.jta.xa.XID getXID()
public final void copy(javax.transaction.xa.Xid xid)
public boolean equals(javax.transaction.xa.Xid xid)
public final boolean packInto(OutputObjectState os)
public final boolean unpackFrom(InputObjectState os)
public static final void pack(OutputObjectState os, javax.transaction.xa.Xid xid) throws java.io.IOException
java.io.IOException
public static final javax.transaction.xa.Xid unpack(InputObjectState os) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to test.public int hashCode()
hashCode
in class java.lang.Object
protected int getHash(com.arjuna.ats.internal.jta.xa.XID xid)
xid
- The xid.protected static int generateHash(int hash, byte[] bytes, int start, int length)
hash
- The initial hash.bytes
- The bytes to include in the hash.