org.objectweb.jorm.api

Interface PSerializable

All Superinterfaces:
Serializable

public interface PSerializable
extends Serializable

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

Author:
yoann

Method Summary

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.
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 Details

getClassName

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

Returns:


getPName

public PName getPName(PBinder pnc)
            throws PExceptionNaming

Returns:
the decoded PName of the object sent to the replicas


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 -


setPName

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

Parameters:
pName -


write

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