![]() |
OpendTect 8.0
|
A Database where each row has a unique id. A row is never deleted, by a new row is added where entryidcol is set to the id of the row it is replacing, and a timestamp will tell which row that is the current. More...
#include <sqldbobject.h>
Public Types | |
| enum | TableStatus { OK , MinorError , MajorError , AccessError } |
Public Member Functions | |
| DatabaseTable (const char *tablename) | |
| ~DatabaseTable () | |
| const char * | entryIDSelectString () const |
| bool | fixTable (Access &, BufferString &errmsg) const |
| TableStatus | getTableStatus (Access &, BufferString &errmsg) const |
| Checks that all columns exist and are of right type. | |
| bool | insertRow (Access &, const BufferStringSet &cols, const BufferStringSet &vals, int entryid, int &rowid, BufferString &errmsg) |
| bool | parseEntryID (const QueryAccess &, int col, int &id) const |
| bool | parseRowID (const QueryAccess &, int col, int &id) const |
| bool | parseTimeStamp (const QueryAccess &, int col, time_t &) const |
| const char * | rowIDSelectString () const |
| bool | searchTable (Access &, int entryid, bool onlylatest, TypeSet< int > &rowids, BufferString &errmsg) |
| virtual const char * | tableName () const |
| const char * | timeStampSelectString () const |
Protected Member Functions | |
| TableStatus | checkTable (bool fix, Access &, BufferString &errmsg) const |
Protected Attributes | |
| ObjectSet< DatabaseColumnBase > | columns_ |
| DatabaseColumn< int > * | entryidcolumn_ |
| IDDatabaseColumn * | rowidcolumn_ |
| const BufferString | tablename_ |
| CreatedTimeStampDatabaseColumn * | timestampcolumn_ |
Friends | |
| class | DatabaseColumnBase |
A Database where each row has a unique id. A row is never deleted, by a new row is added where entryidcol is set to the id of the row it is replacing, and a timestamp will tell which row that is the current.
<>
| SqlDB::DatabaseTable::DatabaseTable | ( | const char * | tablename | ) |
| SqlDB::DatabaseTable::~DatabaseTable | ( | ) |
|
protected |
| const char * SqlDB::DatabaseTable::entryIDSelectString | ( | ) | const |
| bool SqlDB::DatabaseTable::fixTable | ( | Access & | , |
| BufferString & | errmsg ) const |
| TableStatus SqlDB::DatabaseTable::getTableStatus | ( | Access & | , |
| BufferString & | errmsg ) const |
Checks that all columns exist and are of right type.
| bool SqlDB::DatabaseTable::insertRow | ( | Access & | , |
| const BufferStringSet & | cols, | ||
| const BufferStringSet & | vals, | ||
| int | entryid, | ||
| int & | rowid, | ||
| BufferString & | errmsg ) |
| bool SqlDB::DatabaseTable::parseEntryID | ( | const QueryAccess & | , |
| int | col, | ||
| int & | id ) const |
| bool SqlDB::DatabaseTable::parseRowID | ( | const QueryAccess & | , |
| int | col, | ||
| int & | id ) const |
| bool SqlDB::DatabaseTable::parseTimeStamp | ( | const QueryAccess & | , |
| int | col, | ||
| time_t & | ) const |
| const char * SqlDB::DatabaseTable::rowIDSelectString | ( | ) | const |
| bool SqlDB::DatabaseTable::searchTable | ( | Access & | , |
| int | entryid, | ||
| bool | onlylatest, | ||
| TypeSet< int > & | rowids, | ||
| BufferString & | errmsg ) |
|
inlinevirtual |
| const char * SqlDB::DatabaseTable::timeStampSelectString | ( | ) | const |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2025