111 void create( const
char* name ) throw( r_Error );
120 void destroy( const
char* name ) throw( r_Error );
245 void insertColl( const
char* collName, const
char* typeName, const
r_OId& oid ) throw( r_Error );
271 #include "rasodmg/database.icc"
access_status get_status() const
get the actual status
type_schema
possible types define by symbolic names
Definition: database.hh:67
r_Type * get_type_schema(const char *typeName, type_schema typetype)
void set_useridentification(const char *name, const char *plain_pass)
set the user name and password
void open(const char *database_name, access_status status=read_write)
open a database
static r_Database * actual_database
stores a pointer to the actually opened database
Definition: database.hh:233
Definition: raslib/type.hh:56
void removeObjFromColl(const char *name, const r_OId &oid)
removes an object from a collection
void set_storage_format(r_Data_Format format, const char *formatParams=NULL)
set the storage format for newly created MDD for this client
void close()
close a database
void insertColl(const char *collName, const char *typeName, const r_OId &oid)
Definition: database.hh:60
Definition: clientcomm.hh:67
Definition: database.hh:64
r_Ref_Any lookup_object(const char *name) const
lookup named objects in a database (must be called within open database and running transaction) ...
r_Data_Format
Definition: mddtypes.hh:133
Definition: database.hh:71
Definition: database.hh:64
Definition: database.hh:64
Definition: database.hh:69
r_Database()
default constructor
void create(const char *name)
create a database with fixed schema RasDaSchema
Definition: database.hh:70
void destroy(const char *name)
destroy a database
Definition: database.hh:64
const int RASMGRPORT
Definition: rminit.hh:59
void set_object_name(r_Object &obj, const char *name)
give a name to an object (signature is not ODMG conformant because of compiler bug) ...
void set_servername(const char *name, int port=RASMGRPORT)
set the server name
void set_transfer_format(r_Data_Format format, const char *formatParams=NULL)
set the transfer compression format, both for data sent from the server to the client and the other w...
access_status
possible database states
Definition: database.hh:64
const r_OId get_new_oid(unsigned short objType) const