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

db.sql.api.cmd.executor.method.groupByMethod.IGroupBySubQueryMethod Maven / Gradle / Ivy

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


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

import java.util.function.Function;

public interface IGroupBySubQueryMethod {

    SELF groupBy(ISubQuery subQuery, String columnName);

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy