KDbConstExpression
#include <KDbExpression.h>

Public Member Functions | |
KDbConstExpression () | |
KDbConstExpression (const KDbConstExpression &expr) | |
KDbConstExpression (KDbToken token, const QVariant &value) | |
void | setValue (const QVariant &value) |
QVariant | value () const |
![]() | |
KDbExpression () | |
KDbExpression | clone () const |
QDebug | debug (QDebug dbg, KDb::ExpressionCallStack *callStack) const |
KDb::ExpressionClass | expressionClass () const |
void | getQueryParameters (QList< KDbQuerySchemaParameter > *params) |
bool | isBinary () const |
bool | isConst () const |
bool | isDateTimeType () const |
bool | isFPNumericType () const |
bool | isFunction () const |
bool | isIntegerType () const |
bool | isNArg () const |
bool | isNull () const |
bool | isNumericType () const |
bool | isQueryParameter () const |
bool | isTextType () const |
bool | isUnary () const |
bool | isValid () const |
bool | isVariable () const |
bool | operator!= (const KDbExpression &e) const |
bool | operator== (const KDbExpression &e) const |
KDbExpression | parent () const |
void | setExpressionClass (KDb::ExpressionClass aClass) |
void | setToken (KDbToken token) |
KDbBinaryExpression | toBinary () const |
KDbConstExpression | toConst () const |
KDbFunctionExpression | toFunction () const |
KDbToken | token () const |
KDbNArgExpression | toNArg () const |
KDbQueryParameterExpression | toQueryParameter () const |
KDbEscapedString | toString (const KDbDriver *driver, KDbQuerySchemaParameterValueListIterator *params=nullptr, KDb::ExpressionCallStack *callStack=nullptr) const |
KDbUnaryExpression | toUnary () const |
KDbVariableExpression | toVariable () const |
KDbField::Type | type () const |
bool | validate (KDbParseInfo *parseInfo) |
Protected Member Functions | |
KDbConstExpression (const ExplicitlySharedExpressionDataPointer &ptr) | |
KDbConstExpression (KDbExpressionData *data) | |
KDbConstExpression (KDbExpressionData *data, KDb::ExpressionClass aClass, KDbToken token) | |
![]() | |
KDbExpression (const ExplicitlySharedExpressionDataPointer &ptr) | |
KDbExpression (KDbExpressionData *data) | |
KDbExpression (KDbExpressionData *data, KDb::ExpressionClass aClass, KDbToken token) | |
void | appendChild (const ExplicitlySharedExpressionDataPointer &child) |
void | appendChild (const KDbExpression &child) |
bool | checkBeforeInsert (const ExplicitlySharedExpressionDataPointer &child) |
QList< ExplicitlySharedExpressionDataPointer > | children () const |
int | indexOfChild (const KDbExpression &child, int from=0) const |
void | insertChild (int i, const KDbExpression &child) |
void | insertEmptyChild (int i) |
int | lastIndexOfChild (const KDbExpression &child, int from=-1) const |
void | prependChild (const KDbExpression &child) |
bool | removeChild (const KDbExpression &child) |
void | removeChild (int i) |
void | setLeftOrRight (const KDbExpression &right, int index) |
KDbExpression | takeChild (int i) |
Additional Inherited Members | |
![]() | |
static KDb::ExpressionClass | classForToken (KDbToken token) |
![]() | |
ExplicitlySharedExpressionDataPointer | d |
Detailed Description
The KDbConstExpression class represents const expression.
Types are string, integer, float constants. Also includes NULL value. Token can be: IDENTIFIER, SQL_NULL, SQL_TRUE, SQL_FALSE, CHARACTER_STRING_LITERAL, INTEGER_CONST, REAL_CONST, DATE_CONST, DATETIME_CONST, TIME_CONST.
- Note
- For REAL_CONST accepted values can be of type qreal, double and QPoint. In the case of QPoint, integer value (with a sign) is stored in QPoint::x and the fraction part (that should be always positive) is stored in QPoint::y. This gives 31 bits for the integer part (10 decimal digits) and 31 bits for the part (10 decimal digits).
Definition at line 386 of file KDbExpression.h.
Constructor & Destructor Documentation
◆ KDbConstExpression() [1/4]
KDbConstExpression::KDbConstExpression | ( | ) |
Constructs a null const expression.
- See also
- KDbExpression::isNull()
Definition at line 166 of file KDbConstExpression.cpp.
◆ KDbConstExpression() [2/4]
Constructs const expression token token and value value.
Definition at line 172 of file KDbConstExpression.cpp.
◆ KDbConstExpression() [3/4]
KDbConstExpression::KDbConstExpression | ( | const KDbConstExpression & | expr | ) |
Constructs a copy of other const expression expr. Resulting object is not a deep copy but rather a reference to the object expr.
Definition at line 193 of file KDbConstExpression.cpp.
◆ KDbConstExpression() [4/4]
|
protected |
Internal, used by KDbQueryParameterExpression(const QString& message).
Definition at line 177 of file KDbConstExpression.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 9 2023 04:10:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.