26 #ifndef CORE_METADATAQUERY_H 27 #define CORE_METADATAQUERY_H 74 return (queryString ==
" ") ?
" " :
" WHERE " + queryString +
" ";
113 this->value =
new MDObject(label, value);
156 this->value->setValue(value);
300 sExpression =
" 1=1 ";
307 sExpression=_sExpression;
346 queries.emplace_back(&query);
347 operations.emplace_back(
"AND");
351 queries.emplace_back(&query);
352 operations.emplace_back(
"OR");
MDValueLT(MDLabel label, const T &valueMax, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
std::vector< String > operations
String whereString() const
MDValueLE(MDLabel label, const T &valueMax, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
virtual String queryStringFunc() const
void addAndQuery(MDQuery &query)
#define REPORT_ERROR(nerr, ErrormMsg)
int limit
If distint of -1 the results will be limited to this value.
MDLabel orderLabel
Label to which apply sort of the results.
MDValueRelational(const MDObject &value, RelationalOp op, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
MDValueRange(MDLabel label, const T &valueMin, const T &valueMax, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
int offset
If distint of 0, offset elements will be discarded.
MDValueRelational(MDLabel label, const T &value, RelationalOp op, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
MDValueNE(MDLabel label, const T &value, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
String orderByString() const
MDExpression(String _sExpression, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
Incorrect argument received.
String limitString() const
String toString(bool withFormat=false, bool isSql=false) const
MDMultiQuery(int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
virtual String queryStringFunc() const
MDValueRange(const MDObject &o1, const MDObject &o2, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
virtual String queryStringFunc() const
MDQuery(int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID, bool asc=true)
MDValueGT(MDLabel label, const T &valueMin, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
MDValueGE(MDLabel label, const T &valueMin, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
static String label2Str(const MDLabel &label)
Incorrect value received.
void addOrQuery(MDQuery &query)
MDValueEQ(MDLabel label, const T &value, int limit=-1, int offset=0, MDLabel orderLabel=MDL_OBJID)
std::vector< const MDQuery * > queries