Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 506067a2

Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt

  • ID 506067a2376bc70badb37ff4b7a97c5d1f8d4668
  • Vorgänger 38838b5b
  • Nachfolger 1b167b6c

some improvements

Unterschiede anzeigen:

src/join.cpp
}
Join::Join(QString foreignTable, QString condition, QString type) {
Join::Join(QString foreignTable, QString expression, QString type) {
this->foreignTable = foreignTable;
this->condition = Condition(condition);
this->expression = Expression(expression);
this->type = type;
}
Join::Join(QString foreignTable, Condition condition, QString type) {
Join::Join(QString foreignTable, Expression expression, QString type) {
this->foreignTable = foreignTable;
this->condition = condition;
this->expression = expression;
this->type = type;
}
......
foreignTable = value;
}
Condition Join::getCondition() const {
return condition;
Expression Join::getExpression() const {
return expression;
}
QString Join::getMainCondition() const {
auto conditions = this->condition.getConditions();
if (!conditions.isEmpty()) {
return conditions.at(0);
} else {
return "";
}
void Join::setExpression(const Expression &value) {
expression = value;
}
void Join::setCondition(const Condition &value) {
condition = value;
}

Auch abrufbar als: Unified diff