Kexi API Documentation (2.0 alpha)

KexiDB::ConstExpr Class Reference

#include <expression.h>

Inheritance diagram for KexiDB::ConstExpr:

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

Detailed Description

String, integer, float constants also includes NULL value. token can be: IDENTIFIER, SQL_NULL, CHARACTER_STRING_LITERAL, INTEGER_CONST, REAL_CONST

Definition at line 182 of file expression.h.

Public Member Functions

 ConstExpr (int token, const QVariant &val)
virtual ~ConstExpr ()
virtual Field::Type type ()
virtual QString debugString ()
virtual QString toString (QuerySchemaParameterValueListIterator *params=0)
virtual void getQueryParameters (QuerySchemaParameterList &params)
virtual bool validate (ParseInfo &parseInfo)

Public Attributes

QVariant value


Constructor & Destructor Documentation

ConstExpr::ConstExpr int  token,
const QVariant &  val
 

Definition at line 435 of file expression.cpp.

References KexiDBExpr_Const, and KexiDB::BaseExpr::m_cl.

ConstExpr::~ConstExpr  )  [virtual]
 

Definition at line 442 of file expression.cpp.


Member Function Documentation

QString ConstExpr::debugString  )  [virtual]
 

Reimplemented from KexiDB::BaseExpr.

Reimplemented in KexiDB::QueryParameterExpr.

Definition at line 482 of file expression.cpp.

References KexiDB::Driver::defaultSQLTypeName(), KexiDB::BaseExpr::tokenToDebugString(), toString(), and type().

void ConstExpr::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.

Reimplemented in KexiDB::QueryParameterExpr.

Definition at line 509 of file expression.cpp.

QString ConstExpr::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.

Reimplemented in KexiDB::QueryParameterExpr.

Definition at line 488 of file expression.cpp.

References CHARACTER_STRING_LITERAL, DATE_CONST, DATETIME_CONST, KexiDB::BaseExpr::m_token, REAL_CONST, SQL_NULL, TIME_CONST, and value.

Referenced by debugString().

Field::Type ConstExpr::type  )  [virtual]
 

Reimplemented from KexiDB::BaseExpr.

Reimplemented in KexiDB::QueryParameterExpr.

Definition at line 446 of file expression.cpp.

References KexiDB::Field::BigInteger, KexiDB::Field::Byte, CHARACTER_STRING_LITERAL, KexiDB::Field::Date, DATE_CONST, KexiDB::Field::DateTime, DATETIME_CONST, KexiDB::Field::defaultTextLength(), KexiDB::Field::Double, KexiDB::Field::Integer, INTEGER_CONST, KexiDB::Field::InvalidType, KexiDB::Field::LongText, KexiDB::BaseExpr::m_token, KexiDB::Field::Null, REAL_CONST, KexiDB::Field::ShortInteger, SQL_NULL, KexiDB::Field::Text, KexiDB::Field::Time, TIME_CONST, and value.

Referenced by debugString(), and validate().

bool ConstExpr::validate ParseInfo parseInfo  )  [virtual]
 

Reimplemented from KexiDB::BaseExpr.

Reimplemented in KexiDB::QueryParameterExpr.

Definition at line 514 of file expression.cpp.

References KexiDB::Field::InvalidType, type(), and KexiDB::BaseExpr::validate().


Member Data Documentation

QVariant KexiDB::ConstExpr::value
 

Definition at line 192 of file expression.h.

Referenced by KexiDB::QueryParameterExpr::debugString(), KexiDB::QueryParameterExpr::getQueryParameters(), KexiDB::QueryParameterExpr::toString(), toString(), and type().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:44 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003