Class Versionable

  • All Implemented Interfaces:
    Dumpable, java.io.Serializable

    public class Versionable
    extends java.lang.Object
    implements Dumpable, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • Versionable

        public Versionable()
    • Method Detail

      • toVersionable

        public static Versionable toVersionable​(javax.jms.BytesMessage msg)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setClassLoader

        public void setClassLoader​(java.lang.ClassLoader classLoader)
      • transferToMessage

        public void transferToMessage​(javax.jms.BytesMessage msg)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addVersioned

        public void addVersioned​(int version,
                                 Versioned versioned,
                                 java.lang.String factoryClass)
      • createVersionedObject

        public java.lang.Object createVersionedObject()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createCurrentVersionObject

        public java.lang.Object createCurrentVersionObject()
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getDumpId

        public int getDumpId()
        Description copied from interface: Dumpable
        Returns a unique dump id for this object.
        Specified by:
        getDumpId in interface Dumpable
        Returns:
        unique dump id
      • writeContent

        public void writeContent​(java.io.DataOutput out)
                          throws java.io.IOException
        Description copied from interface: Dumpable
        Write the content of this object to the stream.
        Specified by:
        writeContent in interface Dumpable
        Parameters:
        out - output stream
        Throws:
        java.io.IOException - if an error occurs
      • readContent

        public void readContent​(java.io.DataInput in)
                         throws java.io.IOException
        Description copied from interface: Dumpable
        Read the content of this object from the stream.
        Specified by:
        readContent in interface Dumpable
        Parameters:
        in - input stream
        Throws:
        java.io.IOException - if an error occurs
      • toString

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