Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWDBCriterion


RWDBCriterion RWDBExpr

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

None

Synopsis

#include <rw/db/expr.h>

Description

RWDBCriterion is the result of applying logical operators to RWDBExpr. It is used to encapsulate SQL WHERE clauses.

RWDBCriterion represents a specialized type of RWDBExpr that is evaluated in an SQL statement as a boolean value. RWDBCriterion adds neither components nor member functions to the base class. Instead, it insures that a nonboolean expression is not placed in a context that requires a boolean expression during compilation.

Example

In this example, an RWDBCriterion is created anonymously to be used as part of an SQL WHERE clause:

Public Constructors

RWDBCriterion();
RWDBCriterion(const RWDBExpr& Left, 
              RWDBPhraseBook::RWDBPhraseKey op, 
              const RWDBExpr& Right);
RWDBCriterion(RWDBPhraseBook::RWDBPhraseKey op,
              const RWDBExpr& expr);

Related Classes

RWDBCriterion is a special case of RWDBExpr. Please see RWDBExpr for details about RWDBCriterion usage, including operators and constructors.



Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.