Class that controls the dbHV access
Class that controls the dbHV access. Purpose: Hide all details of the database from the user. Current implementation of the database: objectivity 5.0The static member functions createDB and openDB are used to create/open the HV database. These member functions in turn instantiate the dbHV object.
Note on the transaction model: objectivity closes the federated database once the transaction is committed. We therefore tie one (and only one) transaction to the database and do not commit the transaction as long as the object dbHV is supposed to be in use. Once the transation is committed, this object becomes useless and has to be reinstantiated. [This of course does not apply to commitAndHold.] Note: This behaviour could easily be changed if desired by checking whether a transation is going on and reopening the FDB and DB if this is not the case [to be implemented].
MODIFICATIONS:
~dbHV()
static dbHV* createDB( const char* name, const uint32 maxpages = 500 )
static dbHV* openDB( const char* name, const char mode = 'r', const uint32 maxpages = 500)
mode - : r for read only access, w for write access
maxpages - : Maximum number of Logical pages the program many allocate (default 500) static int removeDB( const char* pcName )
static int openFDB( ooHandle( ooFDObj )& fdb )
int startTr()
int abortTr()
int commitTr()
int commitAndHoldTr()
inline const char* getName()
inline const ooHandle ( ooDBObj )()
static int ooInitCalled
char* pcName
ooHandle(ooFDObj)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de