public interface Persister
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPersist(Object obj)
Ask the persister if the persister can handle this object
|
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) |
byte getId()
void setId(byte id)
void writeData(ClassMetaData metaData, ObjectOutput out, Object obj, ObjectSubstitutionInterface substitution) throws IOException
IOExceptionObject readData(ClassLoader loader, StreamingClass streaming, ClassMetaData metaData, int referenceId, ObjectsCache cache, ObjectInput input, ObjectSubstitutionInterface substitution) throws IOException
loader - metaData - referenceId - cache - 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.input - substitution - IOExceptionboolean canPersist(Object obj)
Copyright © 2011-2012 Ovea. All Rights Reserved.