|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jts.jtsxa.XID
public class XID
The XID class provides an implementation of the X/Open transaction identifier it implements the javax.transaction.xa.Xid interface.
| Field Summary | |
|---|---|
static int |
MAXBQUALSIZE
The maximum size of the branch qualifier. |
static int |
MAXGTRIDSIZE
The maximum size of the global transaction identifier. |
| Constructor Summary | |
|---|---|
XID()
Constructs a new null XID. |
|
| Method Summary | |
|---|---|
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(java.lang.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. |
java.lang.String |
toString()
Return a string representing this XID. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAXGTRIDSIZE
public static final int MAXBQUALSIZE
| Constructor Detail |
|---|
public XID()
After construction the data within the XID should be initialized.
| Method Detail |
|---|
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(java.lang.Object o)
equals in class java.lang.Objecto - the object to be compared with this XID.
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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 Xid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||