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

db.sql.api.cmd.struct.conditionChain.IConditionChainAnd Maven / Gradle / Ivy

There is a newer version: 1.7.6-RC2
Show newest version
package db.sql.api.cmd.struct.conditionChain;

import db.sql.api.Getter;
import db.sql.api.cmd.GetterField;
import db.sql.api.cmd.basic.ICondition;

import java.util.function.Function;

public interface IConditionChainAnd {

    SELF and();

    SELF and(ICondition condition);

    default SELF and(ICondition condition, boolean when) {
        if (!when) {
            return (SELF) this;
        }
        return this.and(condition);
    }

    default  SELF and(Getter column, Function f) {
        return this.and(true, column, f);
    }

    default  SELF and(boolean when, Getter column, Function f) {
        return this.and(when, column, 1, f);
    }

    default  SELF and(Getter column, int storey, Function f) {
        return this.and(true, column, storey, f);
    }

     SELF and(boolean when, Getter column, int storey, Function f);

    default SELF and(GetterField[] getterFields, Function f) {
        return and(true, getterFields, f);
    }


    SELF and(boolean when, GetterField[] getterFields, Function f);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy