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
 StorageObject create_object()
          Create a storage type
 StorageObjectRef create_reference(byte[] pid)
          Create a storage type reference
 StorageObject deref(PID pid)
          Return the storage type associated to a reference
 void flush(PersistentObject storage_type)
          Flush a storage type incarnation
 java.lang.String[] getHomeMembers()
          Return all member names
 PID getPID()
          Return the home PID
 boolean is_stored(PID pid)
          Return TRUE if a storage type is stored ( tested from its PID ).
 void refresh(PersistentObject storage_type)
          Refresh a storage type incarnation
 void refreshAll()
          Refresh all storage type incarations
 void remove_storage_type(PID pid)
          Remove a storage type
 void setPersistentLinks(CatalogBase catalog, PID pid)
          Set some information after incarnation
 

Method Detail

setPersistentLinks

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

getPID

public PID getPID()
Return the home PID

remove_storage_type

public void remove_storage_type(PID pid)
                         throws NotFoundException
Remove a storage type

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

flush

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

deref

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

getHomeMembers

public java.lang.String[] getHomeMembers()
Return all member names

create_reference

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

create_object

public StorageObject create_object()
Create a storage type