|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.jotm.JavaXidImpl
public class JavaXidImpl
Xid implementation for JTA XID has the following format as defined by X/Open Specification: XID long formatId format identifier long gtrid_length value 1-64 long bqual_length value 1-64 byte data [XIDDATASIZE] where XIDDATASIZE = 128 The data field comprises at most two contiguous components: a global transaction identifier (gtrid) and a branch qualifier (bqual) which are defined as: byte gtrid [1-64] global transaction identfier byte bqual [1-64] branch qualifier
| Field Summary | |
|---|---|
static int |
JOTM_FORMAT_ID
|
| Fields inherited from interface javax.transaction.xa.Xid |
|---|
MAXBQUALSIZE, MAXGTRIDSIZE |
| Constructor Summary | |
|---|---|
JavaXidImpl(Xid jotmXid)
Build an javax.transaction.xa.Xid from the org.objectweb.jotm.Xid |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj2)
return true if objects are identical |
byte[] |
getBranchQualifier()
Get the Branch Qualifier for that Xid |
int |
getFormatId()
Get the format id for that Xid |
byte[] |
getGlobalTransactionId()
Get the Global Id for that Xid |
int |
hashCode()
return a hashcode value for this object |
String |
toString()
String form default toString() compresses Xid's |
String |
toString(boolean Full)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int JOTM_FORMAT_ID
| Constructor Detail |
|---|
public JavaXidImpl(Xid jotmXid)
| Method Detail |
|---|
public int getFormatId()
getFormatId in interface Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface Xidpublic String toString()
toString in class Objectpublic String toString(boolean Full)
public boolean equals(Object obj2)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||