org.openorb.pss.connector.database

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 persistent object states from an inputstream array
voidrefreshIncarnation()
This operation is used to refresh all data
voidsetPersistentLinks(PID pid, StorageHomeBase home_base)
Set the persistent link data
voidwrite(OutputStream[] output)
Write persistent object states into an outputstream array

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 persistent object states from an inputstream array

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 persistent object states into an outputstream array