
db.sql.api.cmd.executor.method.groupByMethod.IGroupByGetterFunMethod Maven / Gradle / Ivy
package db.sql.api.cmd.executor.method.groupByMethod;
import db.sql.api.Cmd;
import db.sql.api.Getter;
import java.util.function.Function;
public interface IGroupByGetterFunMethod {
default SELF groupByWithFun(Getter column, Function f) {
return this.groupByWithFun(column, 1, f);
}
SELF groupByWithFun(Getter column, int storey, Function f);
default SELF groupByWithFun(boolean when, Getter column, Function f) {
if (!when) {
return (SELF) this;
}
return this.groupByWithFun(column, 1, f);
}
default SELF groupByWithFun(boolean when, Getter column, int storey, Function f) {
if (!when) {
return (SELF) this;
}
return this.groupByWithFun(column, storey, f);
}
default SELF groupBy(boolean when, Getter column, Function f) {
if (!when) {
return (SELF) this;
}
return this.groupByWithFun(column, 1, f);
}
default SELF groupBy(boolean when, Getter column, int storey, Function f) {
if (!when) {
return (SELF) this;
}
return this.groupByWithFun(column, storey, f);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy