com.rapleaf.jack.queries.JoinCondition Maven / Gradle / Ivy
package com.rapleaf.jack.queries;
import java.util.List;
public class JoinCondition implements QueryCondition {
private final JoinType joinType;
private final Table table;
private final List constraints;
JoinCondition(JoinType joinType, Table table, List constraints) {
this.joinType = joinType;
this.table = table;
this.constraints = constraints;
}
Table getTable() {
return table;
}
@Override
public String getSqlStatement() {
return joinType.getSqlKeyword() + " " + table.getSqlKeyword() + " ON " + AbstractExecution.getClauseFromQueryConditions(constraints, "", " AND ", "");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy