db.sql.api.cmd.executor.method.selectMethod.ISelectGetterMethod Maven / Gradle / Ivy
package db.sql.api.cmd.executor.method.selectMethod;
import db.sql.api.Cmd;
import db.sql.api.Getter;
import db.sql.api.cmd.basic.ITable;
import db.sql.api.cmd.basic.ITableField;
import java.util.function.Function;
public interface ISelectGetterMethod, TABLE_FIELD extends ITableField> {
default SELF select(Getter column) {
return this.select(column, 1);
}
SELF select(Getter column, int storey);
default SELF select(boolean when, Getter column) {
if (!when) {
return (SELF) this;
}
return this.select(column, 1);
}
default SELF select(boolean when, Getter column, int storey) {
if (!when) {
return (SELF) this;
}
return this.select(column, storey);
}
default SELF select(Getter column, Function f) {
return this.select(column, 1, f);
}
SELF select(Getter column, int storey, Function f);
default SELF select(boolean when, Getter column, Function f) {
if (!when) {
return (SELF) this;
}
return this.select(column, 1, f);
}
default SELF select(boolean when, Getter column, int storey, Function f) {
if (!when) {
return (SELF) this;
}
return this.select(column, storey, f);
}
}