|
QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
|
SELECT node. More...
#include <qgssqlstatement.h>

Public Member Functions | |
| NodeSelect (const QList< QgsSQLStatement::NodeTableDef * > &tableList, const QList< QgsSQLStatement::NodeSelectedColumn * > &columns, bool distinct) | |
| Constructor. | |
| ~NodeSelect () override | |
| void | accept (QgsSQLStatement::Visitor &v) const override |
| Support the visitor pattern. | |
| void | appendJoin (QgsSQLStatement::NodeJoin *join) |
| Append a join. | |
| QgsSQLStatement::Node * | clone () const override |
| Generate a clone of this node. | |
| QList< QgsSQLStatement::NodeSelectedColumn * > | columns () const |
| Returns the list of columns. | |
| bool | distinct () const |
| Returns if the SELECT is DISTINCT. | |
| QString | dump () const override |
| Abstract virtual dump method. | |
| QList< QgsSQLStatement::NodeJoin * > | joins () const |
| Returns the list of joins. | |
| QgsSQLStatement::NodeType | nodeType () const override |
| Abstract virtual that returns the type of this node. | |
| QList< QgsSQLStatement::NodeColumnSorted * > | orderBy () const |
| Returns the list of order by columns. | |
| void | setJoins (const QList< QgsSQLStatement::NodeJoin * > &joins) |
| Sets joins. | |
| void | setOrderBy (const QList< QgsSQLStatement::NodeColumnSorted * > &orderBy) |
| Sets order by columns. | |
| void | setWhere (QgsSQLStatement::Node *where) |
| Sets where clause. | |
| QList< QgsSQLStatement::NodeTableDef * > | tables () const |
| Returns the list of tables. | |
| QgsSQLStatement::Node * | where () const |
| Returns the where clause. | |
| Public Member Functions inherited from QgsSQLStatement::Node | |
| virtual | ~Node ()=default |
Protected Attributes | |
| QList< NodeSelectedColumn * > | mColumns |
| bool | mDistinct |
| QList< NodeJoin * > | mJoins |
| QList< NodeColumnSorted * > | mOrderBy |
| QList< NodeTableDef * > | mTableList |
| std::unique_ptr< Node > | mWhere |
SELECT node.
Definition at line 873 of file qgssqlstatement.h.
|
inline |
Constructor.
Definition at line 877 of file qgssqlstatement.h.
|
override |
Definition at line 598 of file qgssqlstatement.cpp.
|
inlineoverridevirtual |
Support the visitor pattern.
For any implementation this should look like
| v | A visitor that visits this node. |
Implements QgsSQLStatement::Node.
Definition at line 917 of file qgssqlstatement.h.
|
inline |
Append a join.
Definition at line 891 of file qgssqlstatement.h.
|
overridevirtual |
Generate a clone of this node.
Make sure that the clone does not contain any information which is generated in prepare and context related. Ownership is transferred to the caller.
Implements QgsSQLStatement::Node.
Definition at line 657 of file qgssqlstatement.cpp.
|
inline |
Returns the list of columns.
Definition at line 904 of file qgssqlstatement.h.
|
inline |
Returns if the SELECT is DISTINCT.
Definition at line 906 of file qgssqlstatement.h.
|
overridevirtual |
Abstract virtual dump method.
Implements QgsSQLStatement::Node.
Definition at line 606 of file qgssqlstatement.cpp.
|
inline |
Returns the list of joins.
Definition at line 908 of file qgssqlstatement.h.
|
inlineoverridevirtual |
Abstract virtual that returns the type of this node.
Implements QgsSQLStatement::Node.
Definition at line 914 of file qgssqlstatement.h.
|
inline |
Returns the list of order by columns.
Definition at line 912 of file qgssqlstatement.h.
|
inline |
Sets joins.
Definition at line 885 of file qgssqlstatement.h.
|
inline |
Sets order by columns.
Definition at line 895 of file qgssqlstatement.h.
|
inline |
Sets where clause.
Definition at line 893 of file qgssqlstatement.h.
|
inline |
Returns the list of tables.
Definition at line 902 of file qgssqlstatement.h.
|
inline |
Returns the where clause.
Definition at line 910 of file qgssqlstatement.h.
|
protected |
Definition at line 930 of file qgssqlstatement.h.
|
protected |
Definition at line 931 of file qgssqlstatement.h.
|
protected |
Definition at line 932 of file qgssqlstatement.h.
|
protected |
Definition at line 934 of file qgssqlstatement.h.
|
protected |
Definition at line 929 of file qgssqlstatement.h.
|
protected |
Definition at line 933 of file qgssqlstatement.h.