| Modifier and Type | Field and Description |
|---|---|
static int |
MAXBQUALSIZE
The maximum size of the branch qualifier.
|
static int |
MAXGTRIDSIZE
The maximum size of the global transaction identifier.
|
| Constructor and Description |
|---|
XID()
Constructs a new null XID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(org.omg.CosTransactions.otid_t from)
Initialize an XID using an omg otid_t as the source of data.
|
void |
copy(XID from)
Initialize an XID using another XID as the source of data.
|
boolean |
equals(Object o)
Determine whether or not two objects of this type are equal.
|
byte[] |
getBranchQualifier()
Returns the branch qualifier for this XID.
|
int |
getFormatId() |
int |
getFormatID()
Obtain the format identifier part of the XID.
|
byte[] |
getGlobalTransactionId() |
byte[] |
getGlobalTransactionIdentifier()
Returns the global transaction identifier for this XID.
|
int |
hashCode()
Compute the hash code.
|
boolean |
isEqualBranchQualifier(byte[] data)
Compares the input parameter with the branch qualifier for equality.
|
boolean |
isEqualGtrid(XID xid)
Return whether the Gtrid of this is equal to the Gtrid of xid
|
void |
setBranchQualifier(byte[] qual)
Set the branch qualifier for this XID.
|
void |
setFormatID(int formatID)
Set the format identifier part of the XID.
|
String |
toString()
Return a string representing this XID.
|
public static final int MAXGTRIDSIZE
public static final int MAXBQUALSIZE
public XID()
After construction the data within the XID should be initialized.
public void copy(XID from)
from - the XID to initialize this XID frompublic void copy(org.omg.CosTransactions.otid_t from)
from - the OMG otid_t to initialize this XID fromotid_tpublic boolean equals(Object o)
public int hashCode()
public String toString()
public byte[] getBranchQualifier()
getBranchQualifier in interface Xidpublic void setBranchQualifier(byte[] qual)
qual - a Byte array containing the branch qualifier to be set. If
the size of the array exceeds MAXBQUALSIZE, only the first
MAXBQUALSIZE elements of qual will be used.public int getFormatID()
public void setFormatID(int formatID)
Format - identifier. -1 indicates a null Xid.public boolean isEqualBranchQualifier(byte[] data)
public boolean isEqualGtrid(XID xid)
public byte[] getGlobalTransactionIdentifier()
public int getFormatId()
getFormatId in interface Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface XidCopyright © 2019. All rights reserved.