kexi
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 () |
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 |
Member Function Documentation
Field::Type VariableExpr::type | ( | ) | [virtual] |
We're assuming it's called after VariableExpr::validate().
Reimplemented from KexiDB::BaseExpr.
Definition at line 602 of file expression.cpp.
QString VariableExpr::toString | ( | QuerySchemaParameterValueListIterator * | params = 0 |
) | [virtual] |
- Returns:
- string as a representation of this expression element by running recursive calls. param, if not 0, points to a list item containing value of a query parameter (used in QueryParameterExpr).
Implements KexiDB::BaseExpr.
Definition at line 590 of file expression.cpp.
void VariableExpr::getQueryParameters | ( | QuerySchemaParameterList & | params | ) | [virtual] |
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.
bool VariableExpr::validate | ( | ParseInfo & | parseInfo | ) | [virtual] |
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.
Member Data Documentation
QString KexiDB::VariableExpr::name |
Verbatim name as returned by scanner.
Definition at line 237 of file expression.h.
NULL by default. After succesful 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.
The documentation for this class was generated from the following files: