rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWDBCritFuncDef2 Class Reference
[Expressions]

Specialization of the base class RWDBCritFormDefinition used for defining SQL functions taking 2 parameters. More...

#include <rw/db/func.h>

Inheritance diagram for RWDBCritFuncDef2:
RWDBCritFormDefinition

List of all members.

Public Member Functions

 RWDBCritFuncDef2 (const RWCString &functionName)
virtual RWDBCriterion operator() (const RWDBExpr &x1, const RWDBExpr &x2)

Private Member Functions

virtual RWDBCriterion operator() ()
virtual RWDBCriterion operator() (const RWDBExpr &)
virtual RWDBCriterion operator() (const RWDBExpr &, const RWDBExpr &, const RWDBExpr &)
virtual RWDBCriterion operator() (const RWDBExpr &, const RWDBExpr &, const RWDBExpr &, const RWDBExpr &)

Detailed Description

RWDBCritFuncDef2 is a specialization of the base class RWDBCritFormDefinition. This class provides a simplified mechanism for defining SQL functions taking 2 parameters. Unlike the base class, this class does not require positional placeholders in its function definitions. Also, since the number of required parameters is fixed, compile-time checking can be done on the number of parameters actually passed.

Synopsis

 #include <rw/db/func.h>
 
 RWDBCritFuncDef2 myFunc("myFunc");

Related Classes

RWDBExprFuncDef2 provides a parallel mechanism for defining an RWDBExpr, rather than using an RWDBCriterion.

The RWDBCritFormDefinition base class may be used directly to gain additional flexibility.

See RWDBCriterion for details on SQL WHERE clauses in the DB Interface Module.

Examples

Please refer to the example in RWDBCritFuncDef1.


Constructor & Destructor Documentation

RWDBCritFuncDef2::RWDBCritFuncDef2 ( const RWCString functionName  ) 

Creates an RWDBCritFuncDef2 for a functional expression that takes 2 parameters. After such an RWDBCritFuncDef2 is instantiated, functionName may be used as though it were a predefined function.


Member Function Documentation

virtual RWDBCriterion RWDBCritFuncDef2::operator() ( const RWDBExpr ,
const RWDBExpr ,
const RWDBExpr ,
const RWDBExpr  
) [private, virtual]

Not applicable to this class. This class defines SQL functions taking two parameters.

Reimplemented from RWDBCritFormDefinition.

virtual RWDBCriterion RWDBCritFuncDef2::operator() ( const RWDBExpr ,
const RWDBExpr ,
const RWDBExpr  
) [private, virtual]

Not applicable to this class. This class defines SQL functions taking two parameters.

Reimplemented from RWDBCritFormDefinition.

virtual RWDBCriterion RWDBCritFuncDef2::operator() ( const RWDBExpr  )  [private, virtual]

Not applicable to this class. This class defines SQL functions taking two parameters.

Reimplemented from RWDBCritFormDefinition.

virtual RWDBCriterion RWDBCritFuncDef2::operator() (  )  [private, virtual]

Not applicable to this class. This class defines SQL functions taking two parameters.

Reimplemented from RWDBCritFormDefinition.

virtual RWDBCriterion RWDBCritFuncDef2::operator() ( const RWDBExpr x1,
const RWDBExpr x2 
) [virtual]

Returns an RWDBCriterion in the form of a function with 2 parameters whose name is the name that was passed to self's constructor.

Reimplemented from RWDBCritFormDefinition.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.