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

Detailed Description
Query parameter used to getting user input of constant values.It contains a message that is displayed to the user.
Definition at line 197 of file expression.h.
Public Member Functions | |
QueryParameterExpr (const QString &message) | |
virtual | ~QueryParameterExpr () |
virtual Field::Type | type () |
void | setType (Field::Type type) |
virtual QString | debugString () |
virtual QString | toString (QuerySchemaParameterValueListIterator *params=0) |
virtual void | getQueryParameters (QuerySchemaParameterList ¶ms) |
virtual bool | validate (ParseInfo &parseInfo) |
Protected Attributes | |
Field::Type | m_type |
Member Function Documentation
void QueryParameterExpr::setType | ( | Field::Type | type | ) |
Sets expected type of the parameter. The default is String. This method is called from parent's expression validate(). This depends on the type of the related expression. For instance: query "SELECT * FROM cars WHERE name=[enter name]", "[enter name]" has parameter of the same type as "name" field. "=" binary expression's validate() will be called for the left side of the expression and then the right side will have type set to String.
Definition at line 539 of file expression.cpp.
QString QueryParameterExpr::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).
Reimplemented from KexiDB::ConstExpr.
Definition at line 550 of file expression.cpp.
void QueryParameterExpr::getQueryParameters | ( | QuerySchemaParameterList & | params | ) | [virtual] |
Collects query parameters (messages and types) reculsively and saves them to params. The leaf nodes are objects of QueryParameterExpr class.
Reimplemented from KexiDB::ConstExpr.
Definition at line 555 of file expression.cpp.
The documentation for this class was generated from the following files: