org.objectweb.jotm
Class JavaXidImpl
- Serializable, Xid
public class JavaXidImpl
implements Xid, Serializable
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
JavaXidImpl(Xid jotmXid) - Build an javax.transaction.xa.Xid from the org.objectweb.jotm.Xid
|
JOTM_FORMAT_ID
public static final int JOTM_FORMAT_ID
- 47892
JavaXidImpl
public JavaXidImpl(Xid jotmXid)
Build an javax.transaction.xa.Xid from the org.objectweb.jotm.Xid
equals
public boolean equals(Object obj2)
return true if objects are identical
getBranchQualifier
public byte[] getBranchQualifier()
Get the Branch Qualifier for that Xid
getFormatId
public int getFormatId()
Get the format id for that Xid
getGlobalTransactionId
public byte[] getGlobalTransactionId()
Get the Global Id for that Xid
hashCode
public int hashCode()
return a hashcode value for this object
toString
public String toString()
String form
default toString() compresses Xid's
toString
public String toString(boolean Full)