QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
SELECT node. More...
#include <qgssqlstatement.h>
Public Member Functions | |
NodeSelect (const QList< QgsSQLStatement::NodeTableDef * > &tableList, const QList< QgsSQLStatement::NodeSelectedColumn * > &columns, bool distinct) | |
Constructor. More... | |
~NodeSelect () override | |
void | accept (QgsSQLStatement::Visitor &v) const override |
Support the visitor pattern. More... | |
void | appendJoin (QgsSQLStatement::NodeJoin *join) |
Append a join. More... | |
QgsSQLStatement::Node * | clone () const override |
Generate a clone of this node. More... | |
QList< QgsSQLStatement::NodeSelectedColumn * > | columns () const |
Returns the list of columns. More... | |
bool | distinct () const |
Returns if the SELECT is DISTINCT. More... | |
QString | dump () const override |
Abstract virtual dump method. More... | |
QList< QgsSQLStatement::NodeJoin * > | joins () const |
Returns the list of joins. More... | |
QgsSQLStatement::NodeType | nodeType () const override |
Abstract virtual that returns the type of this node. More... | |
QList< QgsSQLStatement::NodeColumnSorted * > | orderBy () const |
Returns the list of order by columns. More... | |
void | setJoins (const QList< QgsSQLStatement::NodeJoin * > &joins) |
Sets joins. More... | |
void | setOrderBy (const QList< QgsSQLStatement::NodeColumnSorted * > &orderBy) |
Sets order by columns. More... | |
void | setWhere (QgsSQLStatement::Node *where) |
Sets where clause. More... | |
QList< QgsSQLStatement::NodeTableDef * > | tables () const |
Returns the list of tables. More... | |
QgsSQLStatement::Node * | where () const |
Returns the where clause. More... | |
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 |
Node * | mWhere = nullptr |
SELECT node.
Definition at line 703 of file qgssqlstatement.h.
|
inline |
Constructor.
Definition at line 707 of file qgssqlstatement.h.
|
override |
Definition at line 561 of file qgssqlstatement.cpp.
|
inlineoverridevirtual |
Support the visitor pattern.
For any implementation this should look like
C++:
v.visit( *this );
Python:
v.visit( self)
v | A visitor that visits this node. |
Implements QgsSQLStatement::Node.
Definition at line 735 of file qgssqlstatement.h.
|
inline |
Append a join.
Definition at line 713 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 617 of file qgssqlstatement.cpp.
|
inline |
Returns the list of columns.
Definition at line 722 of file qgssqlstatement.h.
|
inline |
Returns if the SELECT is DISTINCT.
Definition at line 724 of file qgssqlstatement.h.
|
overridevirtual |
Abstract virtual dump method.
Implements QgsSQLStatement::Node.
Definition at line 570 of file qgssqlstatement.cpp.
|
inline |
Returns the list of joins.
Definition at line 726 of file qgssqlstatement.h.
|
inlineoverridevirtual |
Abstract virtual that returns the type of this node.
Implements QgsSQLStatement::Node.
Definition at line 732 of file qgssqlstatement.h.
|
inline |
Returns the list of order by columns.
Definition at line 730 of file qgssqlstatement.h.
|
inline |
Sets joins.
Definition at line 711 of file qgssqlstatement.h.
|
inline |
Sets order by columns.
Definition at line 717 of file qgssqlstatement.h.
|
inline |
Sets where clause.
Definition at line 715 of file qgssqlstatement.h.
|
inline |
Returns the list of tables.
Definition at line 720 of file qgssqlstatement.h.
|
inline |
Returns the where clause.
Definition at line 728 of file qgssqlstatement.h.
|
protected |
Definition at line 740 of file qgssqlstatement.h.
|
protected |
Definition at line 741 of file qgssqlstatement.h.
|
protected |
Definition at line 742 of file qgssqlstatement.h.
|
protected |
Definition at line 744 of file qgssqlstatement.h.
|
protected |
Definition at line 739 of file qgssqlstatement.h.
|
protected |
Definition at line 743 of file qgssqlstatement.h.