Package com.mysql.cj.jdbc
Class MysqlXid
java.lang.Object
com.mysql.cj.jdbc.MysqlXid
- All Implemented Interfaces:
javax.transaction.xa.Xid
public class MysqlXid
extends java.lang.Object
implements javax.transaction.xa.Xid
Implementation of the XID interface for MySQL XA
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MysqlXid(byte[] gtrid, byte[] bqual, int formatId)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object another)
byte[]
getBranchQualifier()
int
getFormatId()
byte[]
getGlobalTransactionId()
int
hashCode()
-
Constructor Details
-
MysqlXid
public MysqlXid(byte[] gtrid, byte[] bqual, int formatId)
-
-
Method Details
-
equals
public boolean equals(java.lang.Object another)- Overrides:
equals
in classjava.lang.Object
-
getBranchQualifier
public byte[] getBranchQualifier()- Specified by:
getBranchQualifier
in interfacejavax.transaction.xa.Xid
-
getFormatId
public int getFormatId()- Specified by:
getFormatId
in interfacejavax.transaction.xa.Xid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()- Specified by:
getGlobalTransactionId
in interfacejavax.transaction.xa.Xid
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-