Package com.swiftmq.tools.versioning
Class Versionable
- java.lang.Object
-
- com.swiftmq.tools.versioning.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 Summary
Constructors Constructor Description Versionable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVersioned(int version, Versioned versioned, java.lang.String factoryClass)
java.lang.Object
createCurrentVersionObject()
java.lang.Object
createVersionedObject()
int
getDumpId()
Returns a unique dump id for this object.void
readContent(java.io.DataInput in)
Read the content of this object from the stream.int
selectVersions(int[] versions)
void
setClassLoader(java.lang.ClassLoader classLoader)
java.lang.String
toString()
static Versionable
toVersionable(javax.jms.BytesMessage msg)
void
transferToMessage(javax.jms.BytesMessage msg)
void
writeContent(java.io.DataOutput out)
Write the content of this object to the stream.
-
-
-
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)
-
selectVersions
public int selectVersions(int[] versions) throws VersionedException
- Throws:
VersionedException
-
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.
-
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 interfaceDumpable
- 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 interfaceDumpable
- Parameters:
in
- input stream- Throws:
java.io.IOException
- if an error occurs
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-