KexiDB::OrderByColumn Class Reference
#include <queryschema.h>
Detailed Description
KexiDB::OrderByColumn provides information about a single query column used for sorting.The column can be expression or table field.
Definition at line 100 of file queryschema.h.
Public Types | |
| typedef QValueListConstIterator< OrderByColumn > | ListConstIterator |
Public Member Functions | |
| OrderByColumn () | |
| OrderByColumn (QueryColumnInfo &column, bool ascending=true, int pos=-1) | |
| OrderByColumn (Field &field, bool ascending=true) | |
| Like above but used when the field field is not present on the list of columns. | |
| ~OrderByColumn () | |
| QueryColumnInfo * | column () const |
| A column to sort. | |
| int | position () const |
| Field * | field () const |
| A field to sort, used only in case when the second constructor was used. | |
| bool | ascending () const |
| bool | operator== (const OrderByColumn &col) const |
| QString | debugString () const |
| QString | toSQLString (bool includeTableName=true) const |
Protected Attributes | |
| QueryColumnInfo * | m_column |
| Column to sort 0 if m_field is non-0. | |
| int | m_pos |
| A helper for m_column that allows to know that sorting column was defined by providing its position. | |
| Field * | m_field |
| Used only in case when the second contructor is used. | |
| bool | m_ascending: 1 |
| true if ascending sorting should be performed (the default). | |
Member Typedef Documentation
|
|
Definition at line 103 of file queryschema.h. |
Constructor & Destructor Documentation
|
|
Definition at line 331 of file queryschema.cpp. |
|
||||||||||||||||
|
Definition at line 339 of file queryschema.cpp. |
|
||||||||||||
|
Like above but used when the field field is not present on the list of columns. (e.g. SELECT a FROM t ORDER BY b; where T is a table with fields (a,b)). Definition at line 347 of file queryschema.cpp. |
|
|
Definition at line 355 of file queryschema.cpp. |
Member Function Documentation
|
|
Definition at line 125 of file queryschema.h. |
|
|
A column to sort.
Definition at line 114 of file queryschema.h. |
|
|
Definition at line 359 of file queryschema.cpp. References KexiDB::Field::debugString(), KexiDB::QueryColumnInfo::debugString(), m_ascending, m_column, m_field, and m_pos. |
|
|
A field to sort, used only in case when the second constructor was used.
Definition at line 122 of file queryschema.h. |
|
|
Definition at line 128 of file queryschema.h. References m_ascending, m_column, and m_field. |
|
|
A helper for column() that allows you to know that sorting column was defined by providing its position. -1 by default. Example query: SELECT a, b FROM T ORDER BY 2 Definition at line 119 of file queryschema.h. |
|
|
Definition at line 373 of file queryschema.cpp. References KexiDB::QueryColumnInfo::alias, KexiDB::QueryColumnInfo::aliasOrName(), KexiDB::QueryColumnInfo::field, m_ascending, m_column, m_field, m_pos, KexiDB::Field::name(), and KexiDB::Field::table(). |
Member Data Documentation
|
|
true if ascending sorting should be performed (the default).
Definition at line 149 of file queryschema.h. Referenced by debugString(), operator==(), and toSQLString(). |
|
|
Column to sort 0 if m_field is non-0.
Definition at line 142 of file queryschema.h. Referenced by debugString(), operator==(), and toSQLString(). |
|
|
Used only in case when the second contructor is used.
Definition at line 146 of file queryschema.h. Referenced by debugString(), operator==(), and toSQLString(). |
|
|
A helper for m_column that allows to know that sorting column was defined by providing its position. -1 by default. e.g. SELECT a, b FROM T ORDER BY 2 Definition at line 143 of file queryschema.h. Referenced by debugString(), and toSQLString(). |
The documentation for this class was generated from the following files:
