public class RegularObjectPersister extends Object implements Persister
| Constructor and Description |
|---|
RegularObjectPersister() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPersist(Object obj)
Ask the persister if the persister can handle this object
|
static Object |
defaultRead(ObjectInput input,
Object obj,
StreamingClass streaming,
ClassMetaData metaData,
ObjectSubstitutionInterface substitution) |
static void |
defaultWrite(ObjectOutput output,
Object obj,
ClassMetaData metaClass,
ObjectSubstitutionInterface substitution) |
byte |
getId()
You need to always return what was sent by setId.
|
Object |
readData(ClassLoader loader,
StreamingClass streaming,
ClassMetaData metaData,
int referenceId,
ObjectsCache cache,
ObjectInput input,
ObjectSubstitutionInterface substitution) |
void |
setId(byte id) |
void |
writeData(ClassMetaData metaData,
ObjectOutput out,
Object obj,
ObjectSubstitutionInterface substitution) |
public byte getId()
Persisterpublic void writeData(ClassMetaData metaData, ObjectOutput out, Object obj, ObjectSubstitutionInterface substitution) throws IOException
writeData in interface PersisterIOExceptionpublic static void defaultWrite(ObjectOutput output, Object obj, ClassMetaData metaClass, ObjectSubstitutionInterface substitution) throws IOException
IOExceptionpublic Object readData(ClassLoader loader, StreamingClass streaming, ClassMetaData metaData, int referenceId, ObjectsCache cache, ObjectInput input, ObjectSubstitutionInterface substitution) throws IOException
readData in interface Persistercache - It's the persister job to assign the cache with a created object, right after its creation, as if in case of circular references those references are respected.IOExceptionpublic static Object defaultRead(ObjectInput input, Object obj, StreamingClass streaming, ClassMetaData metaData, ObjectSubstitutionInterface substitution) throws IOException
IOExceptionpublic boolean canPersist(Object obj)
PersistercanPersist in interface PersisterCopyright © 2011-2012 Ovea. All Rights Reserved.