SourcePro® 2022.1 |
SourcePro® API Reference Guide |
Used to build simple CASE
expressions.
More...
#include <rw/db/expr.h>
Public Member Functions | |
RWDBSimpleCaseExpr (const RWDBExpr &input) | |
RWDBSimpleCaseExpr (const RWDBSimpleCaseExpr &simpleCaseExpr) | |
void | else_ (const RWDBExpr &elseExpr) |
RWDBSimpleCaseExpr & | operator= (const RWDBSimpleCaseExpr &simpleCaseExpr) |
void | when (const RWDBExpr &whenExpr, const RWDBExpr &thenExpr) |
Public Member Functions inherited from RWDBExpr | |
RWDBExpr () | |
RWDBExpr (const RWDBExpr &expr) | |
RWDBExpr (char value) | |
RWDBExpr (unsigned char value) | |
RWDBExpr (short value) | |
RWDBExpr (unsigned short value) | |
RWDBExpr (int value) | |
RWDBExpr (unsigned int value) | |
RWDBExpr (long int value) | |
RWDBExpr (unsigned long int value) | |
RWDBExpr (long long value) | |
RWDBExpr (unsigned long long value) | |
RWDBExpr (float value) | |
RWDBExpr (double value) | |
RWDBExpr (long double value) | |
RWDBExpr (const char *value) | |
RWDBExpr (const wchar_t *value) | |
RWDBExpr (const RWCString &value) | |
RWDBExpr (const RWDecimalPortable &value) | |
RWDBExpr (const RWDateTime &value) | |
RWDBExpr (const RWDBDateTime &value) | |
RWDBExpr (const RWDBDuration &value) | |
RWDBExpr (const RWDate &value) | |
RWDBExpr (const RWTime &value) | |
RWDBExpr (const RWDBBlob &value) | |
RWDBExpr (const RWBasicUString &value) | |
RWDBExpr (const RWDBMBString &value) | |
RWDBExpr (const RWWString &value) | |
RWDBExpr (const RWDBValue &value, bool usePhraseBook=true) | |
RWDBExpr (const RWDBColumn &column) | |
RWDBExpr (const RWDBSelectorBase &subSelect) | |
RWDBExpr (RWDBValueManip manip) | |
RWDBExpr (const RWCollection &collection) | |
RWDBExpr (const RWDBTable &) | |
RWDBExpr (const RWDBColumn &left, const RWDBExpr &right) | |
RWDBExpr (const RWDBColumn &left, const RWDBValue &right) | |
RWCString | asString (const RWDBPhraseBook &phraseBook, AsStringControlFlag control=normal) const |
RWDBCriterion | between (const RWDBExpr &expression1, const RWDBExpr &expression2) const |
RWDBCriterion | in (const RWDBExpr &expression1) const |
RWDBCriterion | isNull (void) const |
bool | isValid (void) const |
RWDBCriterion | leftOuterJoin (const RWDBExpr &expression) const |
RWDBCriterion | like (const RWDBExpr &expression1) const |
RWDBCriterion | matchUnique (const RWDBExpr &expression1) const |
RWDBExpr & | operator= (const RWDBExpr &expr) |
RWDBCriterion | rightOuterJoin (const RWDBExpr &expression) const |
RWDBSimpleCaseExpr represents a specialized type of RWDBExpr used to specify a simple SQL CASE
expression.
WHEN
expressions and an ELSE
expression, then is finally inserted into the SELECT
list. RWDBSimpleCaseExpr::RWDBSimpleCaseExpr | ( | const RWDBExpr & | input | ) |
Constructs an RWDBSimpleCaseExpr from input expression.
RWDBSimpleCaseExpr::RWDBSimpleCaseExpr | ( | const RWDBSimpleCaseExpr & | simpleCaseExpr | ) |
Copy constructor. The created RWDBSimpleCaseExpr shares an implementation with simpleCaseExpr.
void RWDBSimpleCaseExpr::else_ | ( | const RWDBExpr & | elseExpr | ) |
Specifies the ELSE
expression for self as elseExpr. If self already has an ELSE
clause, this method replaces it.
RWDBSimpleCaseExpr& RWDBSimpleCaseExpr::operator= | ( | const RWDBSimpleCaseExpr & | simpleCaseExpr | ) |
Assignment operator. Self shares an implementation with simpleCaseExpr. Returns a reference to self.
Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |