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

org.nlpcn.es4sql.domain.JoinSelect Maven / Gradle / Ivy

There is a newer version: 7.8.0.1
Show newest version
package org.nlpcn.es4sql.domain;

import com.alibaba.druid.sql.ast.statement.SQLJoinTableSource;
import org.nlpcn.es4sql.domain.hints.Hint;


import java.util.List;

/**
 * Created by Eliran on 20/8/2015.
 */
public class JoinSelect {


    private TableOnJoinSelect firstTable;
    private TableOnJoinSelect secondTable;
    private Where connectedWhere;
    private List hints;
    private List connectedConditions;
    private int totalLimit;

    private final int DEAFULT_NUM_OF_RESULTS = 200;

    private SQLJoinTableSource.JoinType joinType;


    public JoinSelect() {
        firstTable = new TableOnJoinSelect();
        secondTable = new TableOnJoinSelect();

        totalLimit = DEAFULT_NUM_OF_RESULTS;
    }


    public Where getConnectedWhere() {
        return connectedWhere;
    }

    public void setConnectedWhere(Where connectedWhere) {
        this.connectedWhere = connectedWhere;
    }

    public TableOnJoinSelect getFirstTable() {
        return firstTable;
    }

    public TableOnJoinSelect getSecondTable() {
        return secondTable;
    }



    public SQLJoinTableSource.JoinType getJoinType() {
        return joinType;
    }

    public void setJoinType(SQLJoinTableSource.JoinType joinType) {
        this.joinType = joinType;
    }

    public List getHints() {
        return hints;
    }

    public void setHints(List hints) {
        this.hints = hints;
    }

    public int getTotalLimit() {
        return totalLimit;
    }

    public List getConnectedConditions() {
        return connectedConditions;
    }

    public void setConnectedConditions(List connectedConditions) {
        this.connectedConditions = connectedConditions;
    }

    public void setTotalLimit(int totalLimit) {
        this.totalLimit = totalLimit;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy