All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rapleaf.jack.queries.JoinCondition Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
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