org.openorb.pss.connector.database

Interface DatabaseCatalogBase

public interface DatabaseCatalogBase extends CatalogBaseOperations

This interface must be implemented by all catalogs

Author: Jerome Daniel

Method Summary
Connectorconnector()
Return the connector reference
StorageObjectcreate_embedded_object(StorageHomeBase home_base, String storage_type_id)
This operation is used to create an embedded storage type
StorageObjectcreate_empty_object(StorageHomeBase home_base, String storage_type_id)
This operation is used to create a storage type
StorageObjectcreate_object(StorageHomeBase home_base, String storage_type_id)
This operation is used to create a storage type
PIDfind(PID home_pid, KeyBag[] keys)
This operation is used to find a storage type
StorageObjectincarnate(StorageHomeBase home_base, byte[] storage_type_pid, String storage_type_id)
This operation is used to incarnate a storage type
Parameter[]parameters()
Return parameters
InputStream[]read(PID home_pid, PID type_pid, int nb_members)
This operation is used to get a input access for a storagetype from the datastore
voidremove(PID home_pid, PID type_pid)
This operation is used to delete a storage type
voidsetBaseInfo(DatabaseConnector connector, short access, Parameter[] parameters)
This operation is used to set all base information required by a file catalog
booleanstored(PID home_pid, PID type_pid)
This operation is used to check if a storage type is already stored
voidwrite(PID home_pid, PID type_pid, OutputStream[] output)
This operation is used to create a new entry into the datastore

Method Detail

connector

public Connector connector()
Return the connector reference

create_embedded_object

public StorageObject create_embedded_object(StorageHomeBase home_base, String storage_type_id)
This operation is used to create an embedded storage type

create_empty_object

public StorageObject create_empty_object(StorageHomeBase home_base, String storage_type_id)
This operation is used to create a storage type

create_object

public StorageObject create_object(StorageHomeBase home_base, String storage_type_id)
This operation is used to create a storage type

find

public PID find(PID home_pid, KeyBag[] keys)
This operation is used to find a storage type

incarnate

public StorageObject incarnate(StorageHomeBase home_base, byte[] storage_type_pid, String storage_type_id)
This operation is used to incarnate a storage type

parameters

public Parameter[] parameters()
Return parameters

read

public InputStream[] read(PID home_pid, PID type_pid, int nb_members)
This operation is used to get a input access for a storagetype from the datastore

remove

public void remove(PID home_pid, PID type_pid)
This operation is used to delete a storage type

setBaseInfo

public void setBaseInfo(DatabaseConnector connector, short access, Parameter[] parameters)
This operation is used to set all base information required by a file catalog

stored

public boolean stored(PID home_pid, PID type_pid)
This operation is used to check if a storage type is already stored

write

public void write(PID home_pid, PID type_pid, OutputStream[] output)
This operation is used to create a new entry into the datastore