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

db.sql.api.cmd.struct.conditionChain.IConditionChainOr 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 IConditionChainOr {

    SELF or();

    SELF or(ICondition condition);

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy