Class WmXid

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

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

      • Fields inherited from interface javax.transaction.xa.Xid

        MAXBQUALSIZE, MAXGTRIDSIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      WmXid​(int formatId, byte[] globalTransactionId, byte[] branchQualifier)
      Creates an Xid.
      WmXid​(java.lang.String externalId)
      Creates an Xid from a Broker external identifier.
      WmXid​(javax.transaction.xa.Xid xid)
      Creates an Xid from a foreign Xid.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Indicates whether some other object is "equal to" this one.
      byte[] getBranchQualifier()
      Obtain the transaction branch identifier as an array of bytes.
      int getFormatId()
      Obtain the format identifier.
      byte[] getGlobalTransactionId()
      Obtain the global transaction identifier as an array of bytes.
      int hashCode()
      Returns a hash code value for the object.
      java.lang.String toString()
      Converts this Object to its string representation.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WmXid

        public WmXid​(java.lang.String externalId)
        Creates an Xid from a Broker external identifier. The format of an Xid represented as an external identifier is: ::
        Parameters:
        externalId - An external identifier
      • WmXid

        public WmXid​(int formatId,
                     byte[] globalTransactionId,
                     byte[] branchQualifier)
        Creates an Xid.
        Parameters:
        formatId - The format identifier.
        globalTransactionId - The global transaction identifier.
        branchQualifier - The transaction branch qualifier.
      • WmXid

        public WmXid​(javax.transaction.xa.Xid xid)
        Creates an Xid from a foreign Xid.
    • Method Detail

      • getBranchQualifier

        public byte[] getBranchQualifier()
        Obtain the transaction branch identifier as an array of bytes.
        Specified by:
        getBranchQualifier in interface javax.transaction.xa.Xid
        Returns:
        The transaction branch identifer.
      • getFormatId

        public int getFormatId()
        Obtain the format identifier.
        Specified by:
        getFormatId in interface javax.transaction.xa.Xid
        Returns:
        The format identifier.
      • getGlobalTransactionId

        public byte[] getGlobalTransactionId()
        Obtain the global transaction identifier as an array of bytes.
        Specified by:
        getGlobalTransactionId in interface javax.transaction.xa.Xid
        Returns:
        The global transaction identifier.
      • toString

        public java.lang.String toString()
        Converts this Object to its string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this object
      • hashCode

        public int hashCode()
        Returns a hash code value for the object.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class java.lang.Object