public class XID extends Object implements Serializable, Xid
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES_PER_XID |
MAXBQUALSIZE, MAXGTRIDSIZE| Constructor and Description |
|---|
XID(String tid,
String branchQualifier,
String uniqueResourceName)
This is the main constructor for new instances.
|
XID(Xid xid)
Copy constructor needed during recovery: if the data source returns
inappropriate instances (that do not implement equals and hashCode) then
we will need this constructor.
|
XID(Xid xid,
String uniqueResourceName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
byte[] |
getBranchQualifier() |
String |
getBranchQualifierAsString() |
String |
getCoordinatorId() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
String |
getUniqueResourceName() |
String |
getUri() |
int |
hashCode() |
String |
toString() |
public static final int BYTES_PER_XID
public XID(String tid, String branchQualifier, String uniqueResourceName)
tid - branchQualifier - public XID(Xid xid)
public int getFormatId()
getFormatId in interface Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xidpublic String getUri()
public String getBranchQualifierAsString()
public String getCoordinatorId()
public String getUniqueResourceName()
Copyright © 2026. All rights reserved.