org.openorb.pss.connector.database

Interface PersistentObjectHome

public interface PersistentObjectHome

This interface must be implemented by all storage home to be able to have a persistent database feature.

Author: Jerome Daniel

Method Summary
StorageObjectcreate_object()
Create a storage type
StorageObjectRefcreate_reference(byte[] pid)
Create a storage type reference
StorageObjectderef(PID pid)
Return the storage type associated to a reference
voidflush(PersistentObject storage_type)
Flush a storage type incarnation
String[]getHomeMembers()
Return all member names
PIDgetPID()
Return the home PID
booleanis_stored(PID pid)
Return TRUE if a storage type is stored ( tested from its PID ).
voidrefresh(PersistentObject storage_type)
Refresh a storage type incarnation
voidrefreshAll()
Refresh all storage type incarations
voidremove_storage_type(PID pid)
Remove a storage type
voidsetPersistentLinks(CatalogBase catalog, PID pid)
Set some information after incarnation

Method Detail

create_object

public StorageObject create_object()
Create a storage type

create_reference

public StorageObjectRef create_reference(byte[] pid)
Create a storage type reference

deref

public StorageObject deref(PID pid)
Return the storage type associated to a reference

flush

public void flush(PersistentObject storage_type)
Flush a storage type incarnation

getHomeMembers

public String[] getHomeMembers()
Return all member names

getPID

public PID getPID()
Return the home PID

is_stored

public boolean is_stored(PID pid)
Return TRUE if a storage type is stored ( tested from its PID ).

refresh

public void refresh(PersistentObject storage_type)
Refresh a storage type incarnation

refreshAll

public void refreshAll()
Refresh all storage type incarations

remove_storage_type

public void remove_storage_type(PID pid)
Remove a storage type

setPersistentLinks

public void setPersistentLinks(CatalogBase catalog, PID pid)
Set some information after incarnation