db.sql.api.cmd.struct.conditionChain.IConditionChainOr Maven / Gradle / Ivy
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);
}