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

com.heliorm.impl.JoinPart Maven / Gradle / Ivy

The newest version!
package com.heliorm.impl;

import com.heliorm.Table;
import com.heliorm.def.Join;

import java.util.ArrayList;
import java.util.List;
import java.util.Optional;

/**
 * @author gideon
 */
public final class JoinPart implements Join {

    private final Table table;
    private final OnPart on;
    private final WherePart where;
    private final List> joins;

    public JoinPart(Table table, OnPart on, WherePart where, List> joins) {
        this.table = table;
        this.on = on;
        this.where = where;
        this.joins = new ArrayList<>(joins);
    }

    public Table getTable() {
        return table;
    }

    public OnPart< LO,  RO> getOn() {
        return on;
    }

    public Optional> getWhere() {
        return Optional.ofNullable(where);
    }

    public List> getJoins() {
        return joins;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy