Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (1,72 KB) Statistiken
| Zweig: | Revision:
c047c335 Christian Ehringfeld
/*
* Copyright (C) 2015 Christian Ehringfeld <c.ehringfeld@t-online.de>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

3160499c Christian Ehringfeld
#include "expression.h"
using namespace CuteEntityManager;
Expression::Expression() {
}

506067a2 Christian Ehringfeld
Expression::Expression(QString expression, QHash<QString, QVariant> params,
3160499c Christian Ehringfeld
bool onlyColumn) {
this->expression = expression;
506067a2 Christian Ehringfeld
this->params = params;
this->onlyColumn = onlyColumn;
}

Expression::Expression(QString expression, bool onlyColumn) {
this->expression = expression;
3160499c Christian Ehringfeld
this->onlyColumn = onlyColumn;
}

QString Expression::getExpression() const {
return this->expression;
}

void Expression::setExpression(const QString &value) {
this->expression = value;
}

QString Expression::toString() const {
return this->expression;
}

bool Expression::getOnlyColumn() const {
return onlyColumn;
}

void Expression::setOnlyColumn(bool value) {
onlyColumn = value;
}

1b167b6c Christian Ehringfeld
void Expression::appendParam(const QString &key, const QVariant &value) {
506067a2 Christian Ehringfeld
this->params.insert(key, value);
}

QHash<QString, QVariant> Expression::getParams() const {
return params;
}

void Expression::setParams(const QHash<QString, QVariant> &value) {
params = value;
}