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

    Fields inherited from interface javax.transaction.xa.Xid

    MAXBQUALSIZE, MAXGTRIDSIZE
  • 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()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MysqlXid

      public MysqlXid​(byte[] gtrid, byte[] bqual, int formatId)
  • Method Details

    • equals

      public boolean equals​(java.lang.Object another)
      Overrides:
      equals in class java.lang.Object
    • getBranchQualifier

      public byte[] getBranchQualifier()
      Specified by:
      getBranchQualifier in interface javax.transaction.xa.Xid
    • getFormatId

      public int getFormatId()
      Specified by:
      getFormatId in interface javax.transaction.xa.Xid
    • getGlobalTransactionId

      public byte[] getGlobalTransactionId()
      Specified by:
      getGlobalTransactionId in interface javax.transaction.xa.Xid
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object