public class XidImpl extends Object implements Xid, Serializable
MAXBQUALSIZE, MAXGTRIDSIZE| Constructor and Description |
|---|
XidImpl(byte[] globalId)
Constructor taking a global id (for the main transaction)
|
XidImpl(int formatId,
byte[] globalId,
byte[] branchId) |
XidImpl(Xid global,
byte[] branch)
Constructor for a branch id
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
int |
hashCode() |
String |
toString() |
public XidImpl(byte[] globalId)
globalId - the global transaction idpublic XidImpl(Xid global, byte[] branch)
global - the xid of the global transaction this branch belongs tobranch - the branch idpublic XidImpl(int formatId,
byte[] globalId,
byte[] branchId)
public int getFormatId()
getFormatId in interface Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface XidCopyright © 2023. All rights reserved.