Class TransactionID

java.lang.Object
org.jboss.ejb.client.TransactionID
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UserTransactionID, XidTransactionID

@Deprecated public abstract class TransactionID extends Object implements Serializable
Deprecated.
Retained only for protocol compatibility.
A transaction ID for an invocation. Transaction IDs can be stored in multiple formats with different characteristics.
Author:
David M. Lloyd
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Deprecated.
    Serialized representation of a transaction ID.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createTransactionID(byte[] encoded)
    Deprecated.
    Create a transaction ID object for the given encoded representation.
    final boolean
    equals(Object other)
    Deprecated.
    Determine whether this object is equal to another.
    byte[]
    Deprecated.
    Get a copy of the encoded form of this transaction ID.
    protected byte[]
    Deprecated.
    Get the encoded form of this transaction ID.
    final int
    Deprecated.
     
    Deprecated.
     
    protected final Object
    Deprecated.
    Substitute this transaction ID with a serialized representation.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Method Details

    • getEncodedForm

      public byte[] getEncodedForm()
      Deprecated.
      Get a copy of the encoded form of this transaction ID.
      Returns:
      the copy of the encoded form
    • getEncodedFormRaw

      protected byte[] getEncodedFormRaw()
      Deprecated.
      Get the encoded form of this transaction ID. Note that callers must take care to avoid modifying the encoded form.
      Returns:
      the encoded form
    • equals

      public final boolean equals(Object other)
      Deprecated.
      Determine whether this object is equal to another. Transaction IDs are equal if their encoded form is equal and the class is equal.
      Overrides:
      equals in class Object
      Parameters:
      other - the other object
      Returns:
      true if they are equal, false otherwise
    • hashCode

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

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • createTransactionID

      public static TransactionID createTransactionID(byte[] encoded)
      Deprecated.
      Create a transaction ID object for the given encoded representation.
      Parameters:
      encoded - the encoded representation
      Returns:
      the transaction ID object
    • writeReplace

      protected final Object writeReplace()
      Deprecated.
      Substitute this transaction ID with a serialized representation.
      Returns:
      the serialized representation