| Constructor and Description |
|---|
EnumerationPersister() |
| 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 nonUsedmetaData,
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 Object readData(ClassLoader loader, StreamingClass streaming, ClassMetaData nonUsedmetaData, 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 boolean canPersist(Object obj)
PersistercanPersist in interface PersisterCopyright © 2011-2012 Ovea. All Rights Reserved.