#include <expression.h>
Public Member Functions | |
| QueryParameterExpr (const TQString &message) | |
| QueryParameterExpr (const QueryParameterExpr &expr) | |
| virtual QueryParameterExpr * | copy () const |
| virtual Field::Type | type () |
| void | setType (Field::Type type) |
| virtual TQString | debugString () |
| virtual TQString | toString (QuerySchemaParameterValueListIterator *params=0) |
| virtual void | getQueryParameters (QuerySchemaParameterList ¶ms) |
| virtual bool | validate (ParseInfo &parseInfo) |
| Public Member Functions inherited from KexiDB::ConstExpr | |
| ConstExpr (int token, const TQVariant &val) | |
| ConstExpr (const ConstExpr &expr) | |
| Public Member Functions inherited from KexiDB::BaseExpr | |
| BaseExpr (int token) | |
| int | token () const |
| BaseExpr * | parent () const |
| virtual void | setParent (BaseExpr *p) |
| void | debug () |
| TQString | tokenToDebugString () |
| virtual TQString | tokenToString () |
| int | exprClass () const |
| NArgExpr * | toNArg () |
| UnaryExpr * | toUnary () |
| BinaryExpr * | toBinary () |
| ConstExpr * | toConst () |
| VariableExpr * | toVariable () |
| FunctionExpr * | toFunction () |
| QueryParameterExpr * | toQueryParameter () |
Protected Attributes | |
| Field::Type | m_type |
| Protected Attributes inherited from KexiDB::BaseExpr | |
| int | m_cl |
| BaseExpr * | m_par |
| int | m_token |
Additional Inherited Members | |
| Public Types inherited from KexiDB::BaseExpr | |
| typedef TQPtrList< BaseExpr > | List |
| typedef TQPtrListIterator< BaseExpr > | ListIterator |
| Static Public Member Functions inherited from KexiDB::BaseExpr | |
| static TQString | tokenToDebugString (int token) |
| Public Attributes inherited from KexiDB::ConstExpr | |
| TQVariant | value |
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 217 of file expression.h.
Constructor & Destructor Documentation
◆ QueryParameterExpr() [1/2]
| QueryParameterExpr::QueryParameterExpr | ( | const TQString & | message | ) |
Definition at line 566 of file expression.cpp.
◆ QueryParameterExpr() [2/2]
| QueryParameterExpr::QueryParameterExpr | ( | const QueryParameterExpr & | expr | ) |
Definition at line 573 of file expression.cpp.
◆ ~QueryParameterExpr()
|
virtual |
Definition at line 579 of file expression.cpp.
Member Function Documentation
◆ copy()
|
virtual |
- Returns
- a deep copy of this object.
Reimplemented from KexiDB::ConstExpr.
Definition at line 583 of file expression.cpp.
◆ debugString()
|
virtual |
Reimplemented from KexiDB::ConstExpr.
Definition at line 598 of file expression.cpp.
◆ getQueryParameters()
|
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 609 of file expression.cpp.
◆ setType()
| 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 593 of file expression.cpp.
◆ toString()
|
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 604 of file expression.cpp.
◆ type()
|
virtual |
Reimplemented from KexiDB::ConstExpr.
Definition at line 588 of file expression.cpp.
◆ validate()
|
virtual |
Reimplemented from KexiDB::ConstExpr.
Definition at line 617 of file expression.cpp.
Member Data Documentation
◆ m_type
|
protected |
Definition at line 240 of file expression.h.
The documentation for this class was generated from the following files:
