| |
|
| java.lang.Object org.objectweb.jotm.JavaXidImpl
JavaXidImpl | public class JavaXidImpl implements Xid,Serializable(Code) | | 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
|
JOTM_FORMAT_ID | final public static int JOTM_FORMAT_ID(Code) | | |
byteToHex | final static void byteToHex(byte inbyte, StringBuffer str_buff)(Code) | | Hex Dump of byte
|
equals | public boolean equals(Object obj2)(Code) | | return true if objects are identical
|
getBranchQualifier | public byte[] getBranchQualifier()(Code) | | Get the Branch Qualifier for that Xid
|
getFormatId | public int getFormatId()(Code) | | Get the format id for that Xid
|
getGlobalTransactionId | public byte[] getGlobalTransactionId()(Code) | | Get the Global Id for that Xid
|
hashCode | public int hashCode()(Code) | | return a hashcode value for this object
|
toString | public String toString()(Code) | | String form
default toString() compresses Xid's
|
|
|
|