Skip to main content

ERUCES::TEQuery

#include <tequery.h>

The TEQuery class is a query class.

Inheritance

Public Types

enum LogicalConnection

ValueDescription
AndLogical AND
OrLogical OR
OperatorNodeOperator Node

enum ComparisonOperator

ValueDescription
UndefUndefined
EqualLogical EQUALS
NotEqualLogical NOT EQUALS
LessLogical LESS THAN
LessOrEqualLogical LESS THAN or EQUALS
GreaterLogical GREATER THAN
GreaterOrEqualLogical GREATER THAN or EQUALS

Static Public Attributes

TypeNameDescription
_TESTD stringCLASSNAME

Private Attrib

TypeNameDescription
void *m_val
PersistentObject *m_pObjectImpl

Private Func

MemberDescription
TEQuery()The TEQuery constructor is the default class constructor.

Public Member Functions

MemberDescription
TEQuery(LogicalConnection logical)The TEQuery constructor constructs a logical query node.
TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const bool val)The TEQuery constructor constructs a comparision node to a boolean.
TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const uint8_t val)The TEQuery constructor constructs a comparision node to a unsigned 8-bit integer.
TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const uint16_t val)The TEQuery constructor constructs a comparision node to a unsigned 16-bit integer.
TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const uint32_t val)The TEQuery constructor constructs a comparision node to a unsigned 32-bit integer.
TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const int8_t val)The TEQuery constructor constructs a comparision node to a 8-bit integer.
TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const int16_t val)The TEQuery constructor constructs a comparision node to a 16-bit integer.
TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const int32_t val)The TEQuery constructor constructs a comparision node to a 32-bit integer.
TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const _TESTD string &val)The TEQuery constructor constructs a comparision node to a string.
TEQuery(const TEQuery &)The TEQuery constructor copies a TEQuery object.
~TEQuery()The TEQuery destructor is the class destructor.
void addSubQuery(const TEQuery &subQuery)The addSubQuery method adds a sub query.
void orderBy(const _TESTD string &attributeName, bool ascending=true)
void setLimit(const uint64_t top, const uint64_t offset)The setLimit method sets the result limit.
const _TESTD string getClassName() constThe getClassName method retrieves the class name.
TEObject * clone() constThe clone method clones a TEQuery object.

Member Function Documentation

TEQuery()

The TEQuery constructor is the default class constructor.

TEQuery(LogicalConnection logical)

The TEQuery constructor constructs a logical query node.

Parameters

ParameterDescription
logicalA LogicalConnection object representing the query node.

TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const bool val)

The TEQuery constructor constructs a comparision node to a boolean.

Parameters

ParameterDescription
attributeNameA string representing the attribute name.
opA ComparisonOperator representing the operation.
valA boolean representing the value.

TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const uint8_t val)

The TEQuery constructor constructs a comparision node to a unsigned 8-bit integer.

Parameters

ParameterDescription
attributeNameA string representing the attribute name.
opA ComparisonOperator representing the operation.
valAn 8-bit integer representing the value.

TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const uint16_t val)

The TEQuery constructor constructs a comparision node to a unsigned 16-bit integer.

Parameters

ParameterDescription
attributeNameA string representing the attribute name.
opA ComparisonOperator representing the operation.
valAn 16-bit integer representing the value.

TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const uint32_t val)

The TEQuery constructor constructs a comparision node to a unsigned 32-bit integer.

Parameters

ParameterDescription
attributeNameA string representing the attribute name.
opA ComparisonOperator representing the operation.
valAn 32-bit integer representing the value.

TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const int8_t val)

The TEQuery constructor constructs a comparision node to a 8-bit integer.

Parameters

ParameterDescription
attributeNameA string representing the attribute name.
opA ComparisonOperator representing the operation.
valAn 8-bit integer representing the value.

TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const int16_t val)

The TEQuery constructor constructs a comparision node to a 16-bit integer.

Parameters

ParameterDescription
attributeNameA string representing the attribute name.
opA ComparisonOperator representing the operation.
valAn 16-bit integer representing the value.

TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const int32_t val)

The TEQuery constructor constructs a comparision node to a 32-bit integer.

Parameters

ParameterDescription
attributeNameA string representing the attribute name.
opA ComparisonOperator representing the operation.
valAn 32-bit integer representing the value.

TEQuery(const _TESTD string &attributeName, ComparisonOperator op, const _TESTD string &val)

The TEQuery constructor constructs a comparision node to a string.

Parameters

ParameterDescription
attributeNameA string representing the attribute name.
opA ComparisonOperator representing the operation.
valA string representing the value.

TEQuery(const TEQuery &)

The TEQuery constructor copies a TEQuery object.

~TEQuery()

The TEQuery destructor is the class destructor.

void addSubQuery(const TEQuery &subQuery)

The addSubQuery method adds a sub query.

Parameters

ParameterDescription
subQueryA TEQuery object.

void orderBy(const _TESTD string &attributeName, bool ascending=true)

The orderBy method sets the result order. @param attributeName A string representing the attribute name. @param ascending A boolean representing whether or not to order ascending.

Remark: Only useful for root node

void setLimit(const uint64_t top, const uint64_t offset)

The setLimit method sets the result limit.

Parameters

ParameterDescription
topAn integer representing the top limit.
offsetAn integer representing the offset.

Remark: Only useful for root node

const _TESTD string getClassName() const

The getClassName method retrieves the class name.

Returns: String of class name

TEObject * clone() const

The clone method clones a TEQuery object.

Returns: Cloned TEQuery object.