|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.ats.jta.xa.XidImple
public class XidImple
Implementation of javax.transaction.xa.Xid.
Field Summary | |
---|---|
protected com.arjuna.ats.internal.jta.xa.XID |
_theXid
|
Fields inherited from interface javax.transaction.xa.Xid |
---|
MAXBQUALSIZE, MAXGTRIDSIZE |
Constructor Summary | |
---|---|
XidImple()
|
|
XidImple(AtomicAction c)
|
|
XidImple(Uid id)
Deprecated. This is only used by test code |
|
XidImple(Uid id,
boolean branch,
Integer eisName)
|
|
XidImple(Xid xid)
|
|
XidImple(com.arjuna.ats.internal.jta.xa.XID x)
|
|
XidImple(Xid xid,
boolean branch,
Integer eisName)
|
Method Summary | |
---|---|
void |
copy(Xid xid)
|
boolean |
equals(Object obj)
Is the specified object equal to this one? |
boolean |
equals(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(Xid xid)
|
static void |
pack(OutputObjectState os,
Xid xid)
|
boolean |
packInto(OutputObjectState os)
|
String |
toString()
|
static Xid |
unpack(InputObjectState os)
|
boolean |
unpackFrom(InputObjectState os)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected com.arjuna.ats.internal.jta.xa.XID _theXid
Constructor Detail |
---|
public XidImple()
public XidImple(Xid xid)
public XidImple(AtomicAction c)
public XidImple(Xid xid, boolean branch, Integer eisName)
public XidImple(Uid id)
public XidImple(Uid id, boolean branch, Integer eisName)
public XidImple(com.arjuna.ats.internal.jta.xa.XID x)
Method Detail |
---|
public final boolean isSameTransaction(Xid xid)
public int getFormatId()
getFormatId
in interface Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
public final Uid getTransactionUid()
public final com.arjuna.ats.internal.jta.xa.XID getXID()
public final void copy(Xid xid)
public boolean equals(Xid xid)
public final boolean packInto(OutputObjectState os)
public final boolean unpackFrom(InputObjectState os)
public static final void pack(OutputObjectState os, Xid xid) throws IOException
IOException
public static final Xid unpack(InputObjectState os) throws IOException
IOException
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- The object to test.
public int hashCode()
hashCode
in class 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |