Describes an abstract interface of object to q4wine db.
More...
#include <q4wine/src/lib/dbobject.hpp>
This class provides common methods like load(), save(), delete() to child objects.
It also store associated row id.
- Author
- Alexey S. Malakhov breze.nosp@m.rk@g.nosp@m.mail..nosp@m.com
q4wine::lib::DBObject::DBObject |
( |
std::string |
tableName, |
|
|
intptr_t |
id = 0 |
|
) |
| |
|
explicit |
Constructs an DBObject object.
- Parameters
-
tableName | The q4wine database table name where the object is stored. |
id | The associated row id. If it set to 0, then the object is not associated with any database record. See also: setId getId |
q4wine::lib::DBObject::~DBObject |
( |
| ) |
|
|
virtual |
intptr_t q4wine::lib::DBObject::getId |
( |
void |
| ) |
const |
virtual bool q4wine::lib::DBObject::save |
( |
void |
| ) |
|
|
pure virtual |
void q4wine::lib::DBObject::setId |
( |
intptr_t |
id | ) |
|
intptr_t q4wine::lib::DBObject::id_ |
|
protected |
std::string q4wine::lib::DBObject::tableName_ |
|
protected |
The documentation for this class was generated from the following files: