org.openorb.pss.connector.database
Interface DatabaseCatalogBase

All Superinterfaces:
CatalogBaseOperations
All Known Implementing Classes:
DatabaseSession, DatabaseSessionPool, TransactionalDatabaseSession

public interface DatabaseCatalogBase
extends CatalogBaseOperations

This interface must be implemented by all catalogs

Author:
Jerome Daniel

Method Summary
 Connector connector()
          Return the connector reference
 StorageObject create_embedded_object(StorageHomeBase home_base, java.lang.String storage_type_id)
          This operation is used to create an embedded storage type
 StorageObject create_empty_object(StorageHomeBase home_base, java.lang.String storage_type_id)
          This operation is used to create a storage type
 StorageObject create_object(StorageHomeBase home_base, java.lang.String storage_type_id)
          This operation is used to create a storage type
 PID find(PID home_pid, KeyBag[] keys)
          This operation is used to find a storage type
 StorageObject incarnate(StorageHomeBase home_base, byte[] storage_type_pid, java.lang.String storage_type_id)
          This operation is used to incarnate a storage type
 Parameter[] parameters()
          Return parameters
 org.omg.CORBA.portable.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
 void remove(PID home_pid, PID type_pid)
          This operation is used to delete a storage type
 void setBaseInfo(DatabaseConnector connector, short access, Parameter[] parameters)
          This operation is used to set all base information required by a file catalog
 boolean stored(PID home_pid, PID type_pid)
          This operation is used to check if a storage type is already stored
 void write(PID home_pid, PID type_pid, org.omg.CORBA.portable.OutputStream[] output)
          This operation is used to create a new entry into the datastore
 
Methods inherited from interface org.omg.CosPersistentState.CatalogBaseOperations
access_mode, close, find_by_pid, find_storage_home, flush, free_all, refresh
 

Method Detail

setBaseInfo

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


connector

Connector connector()
Return the connector reference


parameters

Parameter[] parameters()
Return parameters


stored

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


read

org.omg.CORBA.portable.InputStream[] read(PID home_pid,
                                          PID type_pid,
                                          int nb_members)
                                          throws NotFoundException
This operation is used to get a input access for a storagetype from the datastore

Throws:
NotFoundException

write

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


remove

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


find

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

Throws:
NotFoundException

incarnate

StorageObject incarnate(StorageHomeBase home_base,
                        byte[] storage_type_pid,
                        java.lang.String storage_type_id)
                        throws NotFoundException
This operation is used to incarnate a storage type

Throws:
NotFoundException

create_object

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


create_empty_object

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


create_embedded_object

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