org.openorb.pss.connector.database
public class DatabaseSession extends DatabaseCatalog implements Session, DatabaseCatalogBase
Constructor Summary | |
---|---|
DatabaseSession()
Constructor without any parameter | |
DatabaseSession(ORBInitInfo info)
Constructor |
Method Summary | |
---|---|
void | close() |
PID | createHomePID(String storage_home_name)
Generate a Home PID |
PID | createPID(PID home_pid, long index)
Generate a storage type PID |
StorageObject | create_embedded_object(StorageHomeBase home_base, String storage_type_id)
This operation is used to create an embedded storage type |
StorageObject | create_empty_object(StorageHomeBase home_base, String storage_type_id)
This operation is used to create a storage type |
StorageObject | create_object(StorageHomeBase home_base, String storage_type_id)
This operation is used to create a storage type |
void | destroy(StorageHomeBase home) |
PID | find(PID home_pid, KeyBag[] keys)
This operation is used to find a storage type |
StorageHomeBase | find_home_base(PID pid)
Returns an storage object home from its PID ( high part is only used ) |
PID[] | find_pids(PID home_pid)
Returns all PIDs for this home |
void | flush() |
void | free_all() |
String | getParameter(String parameter_name)
Return a parameter |
StorageObject | incarnate(StorageHomeBase home_base, byte[] storage_type_pid, String storage_type_id)
This operation is used to incarnate a storage type |
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 | refresh() |
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)
Set the base information require by a 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, OutputStream[] output)
This operation is used to create a new entry into the datastore |
void | write_entry_into_database(DatabaseEntry entry)
This operation is used to flush an entry into the database |
Parameters: connector the database connector access the access mode parameters parameters
Throws: NullPointerException if a supplier parameter is null