jrunx.persistence
Interface PersistentObject

All Known Implementing Classes:
AbstractPersistentObject

public interface PersistentObject

Interface to a persistence store mechanism for instances.

Author:
Enrique Duvos

Method Summary
 void deserialize(byte[] data)
          Methods for deserializing the object.
 java.lang.Object getObject()
          Retrieves the object.
 byte[] serialize()
          Methods for serializing the object.
 void setObject(java.lang.Object object)
          Sets the encapsulated object.
 

Method Detail

serialize

public byte[] serialize()
                 throws java.lang.Exception
Methods for serializing the object.

deserialize

public void deserialize(byte[] data)
                 throws java.lang.Exception
Methods for deserializing the object.
Parameters:
data - the serialized object as a byte array.

getObject

public java.lang.Object getObject()
Retrieves the object.
Returns:
the Object encapsulated by this PersistentObject.

setObject

public void setObject(java.lang.Object object)
Sets the encapsulated object.
Parameters:
object - the Object encapsulated by this PersistentObject.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.