org.objectweb.jorm.api
Interface PSerializable

All Superinterfaces:
java.io.Serializable

public interface PSerializable
extends java.io.Serializable

This class defines an object sent to the replicas to ensure durability. It extends Serializable.

Author:
yoann

Method Summary
 java.lang.String getClassName()
          Get the name of the jorm class.
 PName getPName(PBinder pnc)
           
 void read(PClassMapping pcm, PAccessor pa)
          Read all the fields of the serializable object and put it in the PAccessor pa.
 java.lang.String setPName(PName pName)
          Set the encoded PName of the object sent to the replicas
 void write(PClassMapping pcm, PAccessor pa)
          Write the PAccessor in the serializable object.
 

Method Detail

getPName

public PName getPName(PBinder pnc)
               throws PExceptionNaming
Returns:
the decoded PName of the object sent to the replicas
Throws:
PExceptionNaming

setPName

public java.lang.String setPName(PName pName)
Set the encoded PName of the object sent to the replicas

Parameters:
pName -

getClassName

public java.lang.String getClassName()
Get the name of the jorm class.

Returns:

read

public void read(PClassMapping pcm,
                 PAccessor pa)
          throws PException
Read all the fields of the serializable object and put it in the PAccessor pa.

Parameters:
pa -
Throws:
PException

write

public void write(PClassMapping pcm,
                  PAccessor pa)
           throws PException
Write the PAccessor in the serializable object.

Throws:
PException