QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Reference to a column. More...
#include <qgssqlstatement.h>
Public Member Functions | |
NodeColumnRef (const QString &name, bool star) | |
Constructor with colum name only. More... | |
NodeColumnRef (const QString &tableName, const QString &name, bool star) | |
Constructor with table and column name. More... | |
virtual void | accept (Visitor &v) const override |
Support the visitor pattern. More... | |
virtual Node * | clone () const override |
Generate a clone of this node. More... | |
NodeColumnRef * | cloneThis () const |
Clone with same type return. More... | |
bool | distinct () const |
Whether this is prefixed by DISTINCT. More... | |
virtual QString | dump () const override |
Abstract virtual dump method. More... | |
QString | name () const |
The name of the column. More... | |
virtual NodeType | nodeType () const override |
Abstract virtual that returns the type of this node. More... | |
void | setDistinct (bool distinct=true) |
Set whether this is prefixed by DISTINCT. More... | |
bool | star () const |
Whether this is the * column. More... | |
QString | tableName () const |
The name of the table. More... | |
Public Member Functions inherited from QgsSQLStatement::Node | |
virtual | ~Node () |
Protected Attributes | |
bool | mDistinct |
QString | mName |
bool | mStar |
QString | mTableName |
Reference to a column.
Definition at line 450 of file qgssqlstatement.h.
|
inline |
Constructor with colum name only.
Definition at line 454 of file qgssqlstatement.h.
|
inline |
Constructor with table and column name.
Definition at line 456 of file qgssqlstatement.h.
|
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 476 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 486 of file qgssqlstatement.cpp.
QgsSQLStatement::NodeColumnRef * QgsSQLStatement::NodeColumnRef::cloneThis | ( | ) | const |
Clone with same type return.
Definition at line 491 of file qgssqlstatement.cpp.
|
inline |
Whether this is prefixed by DISTINCT.
Definition at line 471 of file qgssqlstatement.h.
|
overridevirtual |
Abstract virtual dump method.
Implements QgsSQLStatement::Node.
Definition at line 472 of file qgssqlstatement.cpp.
|
inline |
The name of the column.
Definition at line 465 of file qgssqlstatement.h.
|
inlineoverridevirtual |
Abstract virtual that returns the type of this node.
Implements QgsSQLStatement::Node.
Definition at line 473 of file qgssqlstatement.h.
|
inline |
Set whether this is prefixed by DISTINCT.
Definition at line 459 of file qgssqlstatement.h.
|
inline |
Whether this is the * column.
Definition at line 468 of file qgssqlstatement.h.
|
inline |
|
protected |
Definition at line 484 of file qgssqlstatement.h.
|
protected |
Definition at line 483 of file qgssqlstatement.h.
|
protected |
Definition at line 485 of file qgssqlstatement.h.
|
protected |
Definition at line 482 of file qgssqlstatement.h.