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

db.sql.api.cmd.executor.method.selectMethod.ISelectSubQueryMethod Maven / Gradle / Ivy

package db.sql.api.cmd.executor.method.selectMethod;


import db.sql.api.Cmd;
import db.sql.api.cmd.executor.ISubQuery;

import java.util.function.Function;

public interface ISelectSubQueryMethod {

    SELF select(ISubQuery subQuery, String columnName);

    SELF selectWithFun(ISubQuery subQuery, String columnName, Function f);

    default SELF select(boolean when, ISubQuery subQuery, String columnName) {
        if (!when) {
            return (SELF) this;
        }
        return this.select(subQuery, columnName);
    }

    default SELF selectWithFun(boolean when, ISubQuery subQuery, String columnName, Function f) {
        if (!when) {
            return (SELF) this;
        }
        return this.selectWithFun(subQuery, columnName, f);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy