|
||||||||||
| 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 Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface Xidpublic 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
IOExceptionpublic String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - The object to test.
public int hashCode()
hashCode in class Objectprotected 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 | |||||||||