db.sql.api.cmd.executor.method.selectMethod.ISelectDatasetGetterMethod 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.IDataset;
import db.sql.api.cmd.basic.IDatasetField;
import java.util.function.Function;
public interface ISelectDatasetGetterMethod {
, DATASET_FIELD extends IDatasetField> SELF select(IDataset dataset, Getter column);
default , DATASET_FIELD extends IDatasetField> SELF select(boolean when, IDataset dataset, Getter column) {
if (!when) {
return (SELF) this;
}
return this.select(dataset, column);
}
, DATASET_FIELD extends IDatasetField> SELF select(IDataset dataset, Getter column, Function f);
default , DATASET_FIELD extends IDatasetField> SELF select(boolean when, IDataset dataset, Getter column, Function f) {
if (!when) {
return (SELF) this;
}
return this.select(dataset, column, f);
}
}