Revision 2ee5022f
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
src/query.cpp | ||
---|---|---|
#include "query.h"
|
||
#include "condition.h"
|
||
using namespace CuteEntityManager;
|
||
Query::Query() {
|
||
this->select << "*";
|
||
... | ... | |
}
|
||
|
||
void Query::appendCondition(const QString &condition) {
|
||
this->conditions.append(Condition(condition));
|
||
}
|
||
|
||
void Query::appendCondition(const Condition &condition) {
|
||
this->conditions.append(condition);
|
||
}
|
||
QLinkedList<Condition> Query::getConditions() const {
|
||
return conditions;
|
||
}
|
||
|
||
void Query::setConditions(const QLinkedList<Condition> &value) {
|
||
conditions = value;
|
||
}
|
||
|
||
void Query::setSelect(const QStringList &value) {
|
||
select = value;
|
||
... | ... | |
void Query::setOffset(const uint &value) {
|
||
offset = value;
|
||
}
|
||
|
||
QLinkedList<QString> Query::getConditions() const {
|
||
return conditions;
|
||
}
|
||
|
||
void Query::setConditions(const QLinkedList<QString> &value) {
|
||
conditions = value;
|
||
}
|
Auch abrufbar als: Unified diff
query stuff