org.openorb.pss.connector.file

Interface PersistentObject

public interface PersistentObject

This interface provides default operation that an object type must implemented.

Author: Jerome Daniel

Method Summary
booleancheckForFlush()
This operation checks if flush is possible
voidembeddedBuilder()
This operation is used to create the embedded object
voidflushIncarnation()
This operation is used to flush all data
PIDgetPID()
Return the persistent object PID
voidmarkAsEmbedded(PersistentObject container)
Mark this persistent object as an embedded object
voidread(InputStream input)
Read a storage type from a persistent stream
voidrefreshIncarnation()
This operation is used to refresh all data
voidsetPersistentLinks(PID pid, StorageHomeBase home_base)
Set the persistent link data
voidwrite(OutputStream output)
Write a storage type into a persistent stream

Method Detail

checkForFlush

public boolean checkForFlush()
This operation checks if flush is possible

embeddedBuilder

public void embeddedBuilder()
This operation is used to create the embedded object

flushIncarnation

public void flushIncarnation()
This operation is used to flush all data

getPID

public PID getPID()
Return the persistent object PID

markAsEmbedded

public void markAsEmbedded(PersistentObject container)
Mark this persistent object as an embedded object

read

public void read(InputStream input)
Read a storage type from a persistent stream

refreshIncarnation

public void refreshIncarnation()
This operation is used to refresh all data

setPersistentLinks

public void setPersistentLinks(PID pid, StorageHomeBase home_base)
Set the persistent link data

write

public void write(OutputStream output)
Write a storage type into a persistent stream