db.sql.api.cmd.struct.conditionChain.IConditionChainAnd 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 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);
}