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

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

There is a newer version: 1.7.6-RC2
Show newest version
package db.sql.api.cmd.executor.method.selectMethod;


import db.sql.api.Cmd;
import db.sql.api.cmd.basic.IDataset;
import db.sql.api.cmd.basic.IDatasetField;

import java.util.function.Function;

public interface ISelectDatasetMethod {

    , DATASET_FIELD extends IDatasetField> SELF select(IDataset dataset, String columnName);

    , DATASET_FIELD extends IDatasetField> SELF select(IDataset dataset, String columnName, Function f);

    default , DATASET_FIELD extends IDatasetField> SELF select(boolean when, IDataset dataset, String columnName) {
        if (!when) {
            return (SELF) this;
        }
        return this.select(dataset, columnName);
    }

    default , DATASET_FIELD extends IDatasetField> SELF select(boolean when, IDataset dataset, String columnName, Function f) {
        if (!when) {
            return (SELF) this;
        }
        return this.select(dataset, columnName, f);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy