Class SerializableXid

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

    @Immutable
    @Deprecated
    public class SerializableXid
    extends java.lang.Object
    implements javax.transaction.xa.Xid
    Deprecated.
    use XidImpl instead.
    This xid implementation is needed because Xid is not Serializable and we need to serialize it and send it over the network. As the KTA spec does not enforce in anyway the equals and hashcode methods on Xid TM providers are expected to be able to cope with this Xid class when returned from XAResource's methods.
    Since:
    5.0
    Author:
    Mircea.Markus@jboss.com
    • Constructor Detail

      • SerializableXid

        public SerializableXid​(byte[] branchQualifier,
                               byte[] globalTransactionId,
                               int formantId)
        Deprecated.
      • SerializableXid

        public SerializableXid​(javax.transaction.xa.Xid xid)
        Deprecated.
    • Method Detail

      • getBranchQualifier

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

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

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

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

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

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object