|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.lib.PSerializableImpl
This class is incomplete implementation of PSerializable interface. This class is subclasses by generated XXXserializable class.
Field Summary | |
protected java.lang.String |
pName
|
Constructor Summary | |
PSerializableImpl()
|
Method Summary | |
protected PName |
decodeString(java.lang.String val,
java.lang.String fieldName,
java.lang.Object hints)
Decodes a String value in a PName. |
protected java.lang.String |
encodeString(PName pn)
Encodes a PName into a String value |
abstract java.lang.String |
getClassName()
Get the name of the jorm class. |
java.lang.Object |
getMemoryInstance()
It returns the memory instance within which the persistent variables are defined. |
PName |
getPName(PBinder pnc)
|
abstract 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 |
abstract void |
write(PClassMapping pcm,
PAccessor pa)
Write the PAccessor in the serializable object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String pName
Constructor Detail |
public PSerializableImpl()
Method Detail |
public abstract java.lang.String getClassName()
PSerializable
getClassName
in interface PSerializable
public abstract void read(PClassMapping pcm, PAccessor pa) throws PException
PSerializable
read
in interface PSerializable
pa
-
PException
public abstract void write(PClassMapping pcm, PAccessor pa) throws PException
PSerializable
write
in interface PSerializable
PException
public java.lang.Object getMemoryInstance()
PAccessor
getMemoryInstance
in interface PAccessor
public PName getPName(PBinder pnc) throws PExceptionNaming
getPName
in interface PSerializable
PExceptionNaming
public java.lang.String setPName(PName pName)
PSerializable
setPName
in interface PSerializable
pName
- protected java.lang.String encodeString(PName pn)
pn
- is the PName to encode
protected PName decodeString(java.lang.String val, java.lang.String fieldName, java.lang.Object hints)
val
- is a String representation of a PNamefieldName
- is the name of the field associated to the referencehints
- has to be PClassMapping or a PNameCoder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |