KexiDB::OrderByColumnList Class Reference
#include <queryschema.h>
Inheritance diagram for KexiDB::OrderByColumnList:

Detailed Description
KexiDB::OrderByColumnList provides list of sorted columns for a query schema.
Definition at line 156 of file queryschema.h.
Public Member Functions | |
| OrderByColumnList () | |
| ~OrderByColumnList () | |
| bool | appendFields (QuerySchema &querySchema, const QString &field1, bool ascending1=true, const QString &field2=QString::null, bool ascending2=true, const QString &field3=QString::null, bool ascending3=true, const QString &field4=QString::null, bool ascending4=true, const QString &field5=QString::null, bool ascending5=true) |
| void | appendColumn (QueryColumnInfo &columnInfo, bool ascending=true) |
| void | appendField (Field &field, bool ascending=true) |
| bool | appendField (QuerySchema &querySchema, const QString &fieldName, bool ascending=true) |
| bool | appendColumn (QuerySchema &querySchema, bool ascending=true, int pos=-1) |
| void | appendColumn (const OrderByColumn &column) |
| bool | isEmpty () const |
| uint | count () const |
| void | clear () |
| const_iterator | constBegin () const |
| const_iterator | constEnd () const |
| QString | debugString () const |
| QString | toSQLString (bool includeTableNames=true) const |
Constructor & Destructor Documentation
|
|
Constructs empty list of ordered columns. Definition at line 393 of file queryschema.cpp. |
|
|
Definition at line 427 of file queryschema.cpp. |
Member Function Documentation
|
|
Appends column to the list. Definition at line 469 of file queryschema.cpp. |
|
||||||||||||||||
|
Appends a column that is at position pos (counted from 0).
Definition at line 436 of file queryschema.cpp. References appendColumn(), and KexiDB::QuerySchema::fieldsExpanded(). |
|
||||||||||||
|
Appends column columnInfo. Ascending sorting is set is ascending is true. Definition at line 431 of file queryschema.cpp. Referenced by appendColumn(), appendField(), KexiQueryDesignerGuiEditor::buildSchema(), and buildSelectQuery(). |
|
||||||||||||||||
|
Appends field with a name field. Ascending sorting is set is ascending is true.
Definition at line 451 of file queryschema.cpp. References appendColumn(), KexiDB::QuerySchema::columnInfo(), field, KexiDB::QuerySchema::findTableField(), and KexiDBWarn. |
|
||||||||||||
|
Appends a field field. Ascending sorting is set is ascending is true. Read documentation of OrderByColumn(const Field& field, bool ascending = true) for more info. Definition at line 446 of file queryschema.cpp. References appendColumn(). Referenced by KexiQueryDesignerGuiEditor::buildSchema(), and buildSelectQuery(). |
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Appends multiple fields for sorting. querySchema is used to find appropriate field or alias name.
Definition at line 398 of file queryschema.cpp. References ADD_COL. |
|
|
Removes all elements from the list. Definition at line 203 of file queryschema.h. |
|
|
Definition at line 205 of file queryschema.h. Referenced by debugString(), KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(), and toSQLString(). |
|
|
Definition at line 206 of file queryschema.h. Referenced by debugString(), KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(), and toSQLString(). |
|
|
Definition at line 200 of file queryschema.h. |
|
|
Definition at line 474 of file queryschema.cpp. References constBegin(), constEnd(), and isEmpty(). |
|
|
Definition at line 197 of file queryschema.h. Referenced by debugString(). |
|
|
Definition at line 487 of file queryschema.cpp. References constBegin(), and constEnd(). |
The documentation for this class was generated from the following files:
