jrun.ejb.persistence
Class StatefulPersistentObject

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

public class StatefulPersistentObject
extends AbstractPersistentObject

StatefulSession bean implementation of a PersistentObject

Author:
Enrique Duvos

Field Summary
protected  javax.ejb.SessionContext context
           
 
Fields inherited from class jrunx.persistence.AbstractPersistentObject
instance
 
Constructor Summary
StatefulPersistentObject(javax.ejb.SessionBean instance)
          Constructor.
StatefulPersistentObject(javax.ejb.SessionContext context)
          Constructor.
 
Method Summary
 void deserialize(byte[] data)
          Methods for deserializing the stateful bean.
 byte[] serialize()
          Method for serializing the Stateful bean.
 
Methods inherited from class jrunx.persistence.AbstractPersistentObject
getObject, 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.SessionContext context
Constructor Detail

StatefulPersistentObject

public StatefulPersistentObject(javax.ejb.SessionBean instance)
Constructor. Prepares the object to be serialized
Parameters:
instance - the bean instance.

StatefulPersistentObject

public StatefulPersistentObject(javax.ejb.SessionContext context)
Constructor. Prepares the object to be deserialized
Parameters:
context - the contect associated with the bean.
Method Detail

serialize

public byte[] serialize()
                 throws java.lang.Exception
Method for serializing the Stateful bean.

deserialize

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


Copyright � 2002 Macromedia Corporation. All Rights Reserved.