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

org.fingertip.simpledao.query.JoinQuery Maven / Gradle / Ivy

The newest version!
package org.fingertip.simpledao.query;

import org.fingertip.simpledao.enums.JoinType;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class JoinQuery implements IQuery{
    private JoinType joinType;
    private String table;
    private List queries;
    private JoinQuery joinQuery;

    public JoinQuery(JoinType joinType, String table, ICriteria... queries) {
        this.joinType = joinType;
        this.table = table;
        this.queries = new ArrayList<>();
        Collections.addAll(this.queries, queries);
    }

    @Override
    public String getSql() {
        return null;
    }

    @Override
    public List getValues() {
        return null;
    }

    public JoinType getJoinType() {
        return joinType;
    }

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

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public List getQueries() {
        return queries;
    }

    public void setQueries(List queries) {
        this.queries = queries;
    }

    public JoinQuery getJoinQuery() {
        return joinQuery;
    }

    public void setJoinQuery(JoinQuery joinQuery) {
        this.joinQuery = joinQuery;
    }
}