Kexi API Documentation (2.0 alpha)

KexiDB::UnaryExpr Class Reference

#include <expression.h>

Inheritance diagram for KexiDB::UnaryExpr:

KexiDB::BaseExpr List of all members.

Detailed Description

An unary argument operation: + - NOT (or !) ~ "IS NULL" "IS NOT NULL".

Definition at line 138 of file expression.h.

Public Member Functions

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

Public Attributes

BaseExprm_arg


Constructor & Destructor Documentation

UnaryExpr::UnaryExpr int  token,
BaseExpr arg
 

Definition at line 201 of file expression.cpp.

References KexiDBExpr_Unary, m_arg, KexiDB::BaseExpr::m_cl, and KexiDB::BaseExpr::setParent().

UnaryExpr::~UnaryExpr  )  [virtual]
 

Definition at line 210 of file expression.cpp.

References m_arg.


Member Function Documentation

BaseExpr* KexiDB::UnaryExpr::arg  )  const [inline]
 

Definition at line 147 of file expression.h.

QString UnaryExpr::debugString  )  [virtual]
 

Reimplemented from KexiDB::BaseExpr.

Definition at line 215 of file expression.cpp.

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

void UnaryExpr::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 238 of file expression.cpp.

References KexiDB::BaseExpr::getQueryParameters(), and m_arg.

QString UnaryExpr::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 223 of file expression.cpp.

References m_arg, KexiDB::BaseExpr::m_token, NOT, SQL_IS_NOT_NULL, SQL_IS_NULL, KexiDB::BaseExpr::tokenToDebugString(), and KexiDB::BaseExpr::toString().

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

Reimplemented from KexiDB::BaseExpr.

Definition at line 244 of file expression.cpp.

References KexiDB::Field::Boolean, m_arg, KexiDB::BaseExpr::m_token, NOT, KexiDB::Field::Null, SQL_IS_NOT_NULL, SQL_IS_NULL, and KexiDB::BaseExpr::type().

Referenced by debugString(), and validate().

bool UnaryExpr::validate ParseInfo parseInfo  )  [virtual]
 

Todo:
compare types... e.g. NOT applied to Text makes no sense...

Reimplemented from KexiDB::BaseExpr.

Definition at line 262 of file expression.cpp.

References m_arg, NOT, KexiDB::BaseExpr::toQueryParameter(), type(), and KexiDB::BaseExpr::validate().


Member Data Documentation

BaseExpr* KexiDB::UnaryExpr::m_arg
 

Definition at line 150 of file expression.h.

Referenced by debugString(), getQueryParameters(), toString(), type(), UnaryExpr(), validate(), and ~UnaryExpr().


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