Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (1,8 KB) Statistiken
| Zweig: | Revision:
38838b5b 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/>.
*/

5d93390e Christian Ehringfeld
#include "join.h"
using namespace CuteEntityManager;
Join::Join() {
}

506067a2 Christian Ehringfeld
Join::Join(QString foreignTable, QString expression, QString type) {
3160499c Christian Ehringfeld
this->foreignTable = foreignTable;
506067a2 Christian Ehringfeld
this->expression = Expression(expression);
3160499c Christian Ehringfeld
this->type = type;
}

506067a2 Christian Ehringfeld
Join::Join(QString foreignTable, Expression expression, QString type) {
5d93390e Christian Ehringfeld
this->foreignTable = foreignTable;
506067a2 Christian Ehringfeld
this->expression = expression;
5d93390e Christian Ehringfeld
this->type = type;
}

e3fc2748 Christian Ehringfeld
Join::Join(QString attribute) {
this->attribute = attribute;
this->type = type;
}

5d93390e Christian Ehringfeld
QString Join::getType() const {
return type;
}

void Join::setType(const QString &value) {
type = value;
}

QString Join::getForeignTable() const {
return foreignTable;
}

void Join::setForeignTable(const QString &value) {
foreignTable = value;
}

506067a2 Christian Ehringfeld
Expression Join::getExpression() const {
return expression;
5d93390e Christian Ehringfeld
}

506067a2 Christian Ehringfeld
void Join::setExpression(const Expression &value) {
expression = value;
5d93390e Christian Ehringfeld
}
e3fc2748 Christian Ehringfeld
QString Join::getAttribute() const {
return attribute;
}

void Join::setAttribute(const QString &value) {
attribute = value;
}

QString Join::getAlias() const
{
return alias;
}

void Join::setAlias(const QString &value)
{
alias = value;
}