KexiDB::VariableExpr Class Reference
#include <expression.h>
Inheritance diagram for KexiDB::VariableExpr:

Detailed Description
Variables like fieldname or tablename.fieldname.
Definition at line 221 of file expression.h.
Public Member Functions | |
| VariableExpr (const QString &_name) | |
| virtual | ~VariableExpr () |
| virtual Field::Type | type () |
| We're assuming it's called after VariableExpr::validate(). | |
| virtual QString | debugString () |
| virtual QString | toString (QuerySchemaParameterValueListIterator *params=0) |
| virtual void | getQueryParameters (QuerySchemaParameterList ¶ms) |
| virtual bool | validate (ParseInfo &parseInfo) |
Public Attributes | |
| QString | name |
| Field * | field |
| int | tablePositionForField |
| TableSchema * | tableForQueryAsterisk |
Constructor & Destructor Documentation
|
|
Definition at line 570 of file expression.cpp. References KexiDBExpr_Variable, and KexiDB::BaseExpr::m_cl. |
|
|
Definition at line 580 of file expression.cpp. |
Member Function Documentation
|
|
Reimplemented from KexiDB::BaseExpr. Definition at line 584 of file expression.cpp. References KexiDB::Driver::defaultSQLTypeName(), field, name, and type(). |
|
|
Collects query parameters (messages and types) reculsively and saves them to params. The leaf nodes are objects of QueryParameterExpr class. Implements KexiDB::BaseExpr. Definition at line 596 of file expression.cpp. |
|
|
Implements KexiDB::BaseExpr. Definition at line 590 of file expression.cpp. References name. |
|
|
We're assuming it's called after VariableExpr::validate().
Reimplemented from KexiDB::BaseExpr. Definition at line 602 of file expression.cpp. References field, KexiDB::Field::InvalidType, and KexiDB::Field::type(). Referenced by debugString(). |
|
|
Validation. Sets field, tablePositionForField and tableForQueryAsterisk members. See addColumn() in parse.y to see how it's used on column adding. Reimplemented from KexiDB::BaseExpr. Definition at line 613 of file expression.cpp. References KexiDB::FieldList::field(), field, foreach_list, IMPL_ERROR, KexiDBDbg, name, KexiDB::Field::table(), tableForQueryAsterisk, tablePositionForField, and KexiDB::BaseExpr::validate(). |
Member Data Documentation
|
|
Definition at line 243 of file expression.h. Referenced by addColumn(), debugString(), type(), and validate(). |
|
|
Verbatim name as returned by scanner. Definition at line 237 of file expression.h. Referenced by addColumn(), buildSelectQuery(), debugString(), KexiQueryDesignerGuiEditor::showFieldsOrRelationsForQueryInternal(), toString(), and validate(). |
|
|
NULL by default. After successful validate() it will point to a table that is referenced by asterisk, i.e. "*.tablename". This is set to NULL if this variable is not an asterisk of that form. Definition at line 256 of file expression.h. Referenced by addColumn(), and validate(). |
|
|
Definition at line 251 of file expression.h. Referenced by addColumn(), and validate(). |
The documentation for this class was generated from the following files:
