public class XID extends Object implements Serializable, Xid
MAXBQUALSIZE, MAXGTRIDSIZE| Constructor and Description |
|---|
XID(String tid,
String branchQualifier,
String uniqueResourceName)
Create a new instance with the resource name as branch.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
byte[] |
getBranchQualifier() |
String |
getBranchQualifierAsString() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
String |
getGlobalTransactionIdAsString() |
String |
getUniqueResourceName() |
int |
hashCode() |
String |
toString() |
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 getBranchQualifierAsString()
public String getGlobalTransactionIdAsString()
public String getUniqueResourceName()
Copyright © 2022. All rights reserved.