Aabstraction for database managers compatible with DBM. More...
Public Member Functions | |
virtual | ~ADBM () |
Release resources of the instance. | |
virtual void | close ()=0 throw (DBM_error) |
Close the database connection. | |
virtual void | storerec (const Datum &key, const Datum &val, bool replace=true)=0 throw (DBM_error) |
Store a record. | |
virtual void | deleterec (const Datum &key)=0 throw (DBM_error) |
Delete a record. | |
virtual Datum | fetchrec (const Datum &key)=0 throw (DBM_error) |
Fetch a record. | |
virtual Datum | firstkey ()=0 throw (DBM_error) |
Get the first key. | |
virtual Datum | nextkey ()=0 throw (DBM_error) |
Get the next key. | |
virtual bool | error ()=0 throw (DBM_error) |
Check whether a fatal error occured or not. |
Aabstraction for database managers compatible with DBM.
virtual void qdbm::ADBM::close | ( | ) | throw (DBM_error) [pure virtual] |
Close the database connection.
DBM_error | if an error occurs. |
Implemented in qdbm::Curia, qdbm::Depot, and qdbm::Villa.
Delete a record.
key | reference to a key object. |
DBM_error | if an error occurs or no record corresponds. |
Implemented in qdbm::Curia, qdbm::Depot, and qdbm::Villa.
virtual bool qdbm::ADBM::error | ( | ) | throw (DBM_error) [pure virtual] |
Check whether a fatal error occured or not.
DBM_error | if an error occurs. |
Implemented in qdbm::Curia, qdbm::Depot, and qdbm::Villa.
Fetch a record.
key | reference to a key object. |
DBM_error | if an error occurs or no record corresponds. |
Implemented in qdbm::Curia, qdbm::Depot, and qdbm::Villa.
Get the first key.
DBM_error | if an error occurs or no record corresponds. |
Implemented in qdbm::Curia, qdbm::Depot, and qdbm::Villa.
Get the next key.
DBM_error | if an error occurs or no record corresponds. |
Implemented in qdbm::Curia, qdbm::Depot, and qdbm::Villa.
virtual void qdbm::ADBM::storerec | ( | const Datum & | key, | |
const Datum & | val, | |||
bool | replace = true | |||
) | throw (DBM_error) [pure virtual] |
Store a record.
key | reference to a key object. | |
val | reference to a value object. | |
replace | whether the existing value is to be overwritten or not. |
DBM_error | if an error occurs or replace is cancelled. |
Implemented in qdbm::Curia, qdbm::Depot, and qdbm::Villa.