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 booleanequals(java.lang.Object another)byte[]getBranchQualifier()intgetFormatId()byte[]getGlobalTransactionId()inthashCode()
-
Constructor Details
-
MysqlXid
public MysqlXid(byte[] gtrid, byte[] bqual, int formatId)
-
-
Method Details
-
equals
public boolean equals(java.lang.Object another)- Overrides:
equalsin classjava.lang.Object
-
getBranchQualifier
public byte[] getBranchQualifier()- Specified by:
getBranchQualifierin interfacejavax.transaction.xa.Xid
-
getFormatId
public int getFormatId()- Specified by:
getFormatIdin interfacejavax.transaction.xa.Xid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()- Specified by:
getGlobalTransactionIdin interfacejavax.transaction.xa.Xid
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-