public class MariaDbXid
extends java.lang.Object
implements javax.transaction.xa.Xid
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
branchQualifier |
private int |
formatId |
private byte[] |
globalTransactionId |
| Constructor and Description |
|---|
MariaDbXid(int formatId,
byte[] globalTransactionId,
byte[] branchQualifier)
Global transaction identifier.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Equal implementation.
|
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
private final int formatId
private final byte[] globalTransactionId
private final byte[] branchQualifier
public MariaDbXid(int formatId,
byte[] globalTransactionId,
byte[] branchQualifier)
formatId - the format identifier part of the XID.globalTransactionId - the global transaction identifier part of XID as an array of bytes.branchQualifier - the transaction branch identifier part of XID as an array of bytes.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - object to comparepublic int getFormatId()
getFormatId in interface javax.transaction.xa.Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface javax.transaction.xa.Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface javax.transaction.xa.Xid