SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWDBCritFuncDef3 Class Reference

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

#include <rw/db/func.h>

Inheritance diagram for RWDBCritFuncDef3:
RWDBCritFormDefinition

Public Member Functions

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

Private Member Functions

virtual RWDBCriterion operator() ()
 
virtual RWDBCriterion operator() (const RWDBExpr &)
 
virtual RWDBCriterion operator() (const RWDBExpr &, const RWDBExpr &)
 
virtual RWDBCriterion operator() (const RWDBExpr &, const RWDBExpr &, const RWDBExpr &, const RWDBExpr &)
 
- Private Member Functions inherited from RWDBCritFormDefinition
 RWDBCritFormDefinition ()
 
 RWDBCritFormDefinition (const RWCString &formatString)
 

Detailed Description

RWDBCritFuncDef3 is a specialization of the base class RWDBCritFormDefinition. This class provides a simplified mechanism for defining SQL functions taking 3 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>
RWDBCritFuncDef3 myFunc("myFunc");
Specialization of the base class RWDBCritFormDefinition used for defining SQL functions taking 3 para...
Definition func.h:1070
See also

RWDBExprFuncDef3 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.

Example
Please refer to the example in RWDBCritFuncDef1.

Constructor & Destructor Documentation

◆ RWDBCritFuncDef3()

RWDBCritFuncDef3::RWDBCritFuncDef3 ( const RWCString & functionName)

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

Member Function Documentation

◆ operator()() [1/5]

virtual RWDBCriterion RWDBCritFuncDef3::operator() ( )
privatevirtual

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

Reimplemented from RWDBCritFormDefinition.

◆ operator()() [2/5]

virtual RWDBCriterion RWDBCritFuncDef3::operator() ( const RWDBExpr & )
privatevirtual

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

Reimplemented from RWDBCritFormDefinition.

◆ operator()() [3/5]

virtual RWDBCriterion RWDBCritFuncDef3::operator() ( const RWDBExpr & ,
const RWDBExpr &  )
privatevirtual

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

Reimplemented from RWDBCritFormDefinition.

◆ operator()() [4/5]

virtual RWDBCriterion RWDBCritFuncDef3::operator() ( const RWDBExpr & ,
const RWDBExpr & ,
const RWDBExpr & ,
const RWDBExpr &  )
privatevirtual

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

Reimplemented from RWDBCritFormDefinition.

◆ operator()() [5/5]

virtual RWDBCriterion RWDBCritFuncDef3::operator() ( const RWDBExpr & x1,
const RWDBExpr & x2,
const RWDBExpr & x3 )
virtual

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

Reimplemented from RWDBCritFormDefinition.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.