kexi

KexiDB::QueryParameterExpr Class Reference

#include <expression.h>

Inheritance diagram for KexiDB::QueryParameterExpr:

KexiDB::ConstExpr KexiDB::BaseExpr List of all members.

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.


Public Member Functions

 QueryParameterExpr (const QString &message)
 QueryParameterExpr (const QueryParameterExpr &expr)
virtual ~QueryParameterExpr ()
virtual QueryParameterExprcopy () const
virtual Field::Type type ()
void setType (Field::Type type)
virtual QString debugString ()
virtual QString toString (QuerySchemaParameterValueListIterator *params=0)
virtual void getQueryParameters (QuerySchemaParameterList &params)
virtual bool validate (ParseInfo &parseInfo)

Protected Attributes

Field::Type m_type

Member Function Documentation

QueryParameterExpr * QueryParameterExpr::copy (  )  const [virtual]

Returns:
a deep copy of this object.

Reimplemented from KexiDB::ConstExpr.

Definition at line 587 of file expression.cpp.

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 597 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 608 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 613 of file expression.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys