Class RecoveredXid

  • All Implemented Interfaces:
    javax.transaction.xa.Xid

    class RecoveredXid
    extends java.lang.Object
    implements javax.transaction.xa.Xid
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) byte[] branchQualifier  
      (package private) int formatId  
      (package private) byte[] globalTransactionId  
      • Fields inherited from interface javax.transaction.xa.Xid

        MAXBQUALSIZE, MAXGTRIDSIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      RecoveredXid​(int formatId, byte[] globalTransactionId, byte[] branchQualifier)  
    • Field Detail

      • formatId

        int formatId
      • globalTransactionId

        byte[] globalTransactionId
      • branchQualifier

        byte[] branchQualifier
    • Constructor Detail

      • RecoveredXid

        RecoveredXid​(int formatId,
                     byte[] globalTransactionId,
                     byte[] branchQualifier)
    • Method Detail

      • 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
      • getBranchQualifier

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

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        This is for debugging purposes only.
        Overrides:
        toString in class java.lang.Object
      • xidToString

        static java.lang.String xidToString​(javax.transaction.xa.Xid xid)
      • stringToXid

        static javax.transaction.xa.Xid stringToXid​(java.lang.String s)
        Returns:
        recovered xid, or null if s does not represent a valid xid encoded by the driver.