DbStruct Pile
version 0.0.1
This pile contains classes that can be used to
|
A view in a database. More...
#include <dbview.h>
Public Member Functions | |
DbView () | |
Default constructor. More... | |
virtual | ~DbView () |
Destructor. More... | |
virtual Type | type () const |
The type of this object. | |
Public Member Functions inherited from DbTaew | |
DbTaew () | |
Default constructor. More... | |
virtual | ~DbTaew () |
Destructor. More... | |
bool | hasColumn (const QString &s_name) const |
Tell if a column is part of this table. | |
int | columnIndex (const QString &s_name) const |
Tell the index of a column in this table. | |
int | realColumnIndex (const QString &s_name) const |
Tell the index of a column in the underlying table. | |
virtual QSqlTableModel * | sqlModel (QSqlDatabase &database, QObject *parent=NULL) const |
Create a Sql model for this table. More... | |
virtual QString | tableName () const =0 |
The name of this table as a string. | |
virtual QString | modifyTableName () const |
Where updates should go. | |
virtual QString | columnName (int i) const =0 |
The name of a column given an index. | |
virtual QString | columnLabel (int i) const =0 |
The (translated) label for a column given an index. | |
virtual int | columnCount () const =0 |
Number of columns in this table. | |
virtual QStringList | columns () const =0 |
The name of the columns as a list of strings. | |
virtual int | idColumn () const =0 |
The index of the id column or ID_UNAVAILABLE if no id column. | |
virtual QString | commaColumns () const =0 |
All columns as a comma-separated list. | |
virtual QString | commaColumnsNoId () const =0 |
All columns as a comma-separated list except the id. | |
virtual QString | columnColumns () const =0 |
All columns as a comma-separated list and :columns. | |
virtual QString | assignColumns () const =0 |
All columns as a comma-separated list of column=:column. | |
virtual DbColumn | columnCtor (int i) const =0 |
Create a column class instance given its index. | |
virtual DbRecord * | createDefaultRecord () const =0 |
Creates a record of this type. | |
virtual int | toRealIndex (int) const =0 |
Convert from virtual indices to real indices (-1 => virtual). | |
virtual int | fromRealIndex (int) const =0 |
Convert from real indices to virtual indices. | |
Public Member Functions inherited from DbObject | |
DbObject () | |
Default constructor. More... | |
virtual | ~DbObject () |
Destructor. More... | |
DbStructMeta * | asStruct () |
Get this instance as a DbStruct. | |
DbColumn * | asColumn () |
Get this instance as a DbColumn. | |
DbRecord * | asRecord () |
Get this instance as a DbRecord. | |
DbTable * | asTable () |
Get this instance as a DbTable. | |
DbView * | asView () |
Get this instance as a DbView. | |
bool | isStruct () |
Tell if this instance is a DbStruct. | |
bool | isColumn () |
Tell if this instance is a DbColumn. | |
bool | isRecord () |
Tell if this instance is a DbRecord. | |
bool | isTable () |
Tell if this instance is a DbTable. | |
bool | isView () |
Tell if this instance is a DbView. | |
bool | isCustom () |
Tell if this instance is a custom one. | |
Additional Inherited Members | |
Public Types inherited from DbTaew | |
enum | Codes { ID_NEW_INSTANCE = -1, ID_UNAVAILABLE = -2 } |
Special codes. | |
Public Types inherited from DbObject | |
enum | Type { DBO_INVALID = -1, DBO_STRUCT, DBO_COLUMN, DBO_RECORD, DBO_TABLE, DBO_SUBSET, DBO_CPLX_VIEW, DBO_CUSTOM, DBO_MAX } |
The types of objects that use this class as a base. More... | |
A view in a database.
Detailed description.
DbView::DbView | ( | ) |
Default constructor.
Detailed description for conviewor.
|
virtual |
Destructor.
Detailed description for deviewor.