jrun.ejb.persistence
Class EntityPersistentObject

java.lang.Object
  |
  +--jrunx.persistence.AbstractPersistentObject
        |
        +--jrun.ejb.persistence.EntityPersistentObject
All Implemented Interfaces:
PersistentObject

public class EntityPersistentObject
extends AbstractPersistentObject

Interface to a persistence store mechanism for instances.

Author:
Enrique Duvos

Field Summary
protected  javax.ejb.EntityContext context
           
 
Fields inherited from class jrunx.persistence.AbstractPersistentObject
instance
 
Constructor Summary
EntityPersistentObject(javax.ejb.EntityBean instance)
          Constructor.
 
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.
 
Methods inherited from class jrunx.persistence.AbstractPersistentObject
setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected javax.ejb.EntityContext context
Constructor Detail

EntityPersistentObject

public EntityPersistentObject(javax.ejb.EntityBean instance)
Constructor. Prepares the object to be serialized
Parameters:
instance - the bean instance.
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.
Overrides:
getObject in class AbstractPersistentObject
Returns:
the Object encapsulated by this PersistentObject.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.