public class XidImpl extends java.lang.Object implements Xid, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
JOTM_FORMAT_ID |
Constructor and Description |
---|
XidImpl()
build a new Xid with a null BQual
|
XidImpl(byte[] XidByteArray)
Construct an Xid from a byte array.
|
XidImpl(java.nio.ByteBuffer XidByteBuffer)
Construct an Xid from a byteBuffer.
|
XidImpl(int formatId,
byte[] gtrid,
byte[] bqual)
build Xid with all its components
(for performance on java serialization)
|
XidImpl(int fid,
int bqualsz,
byte[] tid)
Build an Xid from an otid_t CORBA
|
XidImpl(java.lang.String serverName,
int ipAddr)
Build an Xid for a local transaction
|
XidImpl(javax.transaction.xa.Xid passedXid)
The xid was passed from an external EIS (inflow transaction).
|
XidImpl(Xid oldXid,
int index)
build a new Xid from an existing Xid, preserving the gtrid,
and using the 'index' as part of the unique but recognizable BQual.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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
|
boolean |
isThisOneOfOurs(byte[] gtrid_or_bqual) |
static void |
setUuids(long passedUuid0,
long passedUuid1)
Provide static interface to recover uuid0 & uuid1 after journal
replay.
|
java.lang.String |
toString()
String form
default toString() compresses Xid's
|
java.lang.String |
toString(boolean Full) |
public static final int JOTM_FORMAT_ID
public XidImpl(java.lang.String serverName, int ipAddr)
public XidImpl(int fid, int bqualsz, byte[] tid)
public XidImpl(int formatId, byte[] gtrid, byte[] bqual)
public XidImpl()
public XidImpl(Xid oldXid, int index)
public XidImpl(java.nio.ByteBuffer XidByteBuffer)
public XidImpl(byte[] XidByteArray)
public XidImpl(javax.transaction.xa.Xid passedXid)
public static void setUuids(long passedUuid0, long passedUuid1)
public int getFormatId()
getFormatId
in interface javax.transaction.xa.Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface javax.transaction.xa.Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface javax.transaction.xa.Xid
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean Full)
public boolean isThisOneOfOurs(byte[] gtrid_or_bqual)
public boolean equals(java.lang.Object obj2)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object