/** * Adds a like operator with the given parameter. */ default CriteriaWhere<T> like(String pattern) { return op(Op.LIKE.getValue()).param(pattern); }
/** * Adds a not in operator with the given parameter. */ default CriteriaWhere<T> not_in(Object... array) { return op(Op.NOT_IN.getValue()).param(array); }
/** * Adds a '<' operator with the given parameter. */ default CriteriaWhere<T> lt(Object param) { return op(Op.LT.getValue()).param(param); }
/** * Adds a '<=' operator with the given parameter. */ default CriteriaWhere<T> le(Object param) { return op(Op.LE.getValue()).param(param); }
/** * Adds a not like operator with the given parameter. */ default CriteriaWhere<T> not_like(String pattern) { return op(Op.NOT_LIKE.getValue()).param(pattern); }
/** * Adds a '>' operator with the given parameter. */ default CriteriaWhere<T> gt(Object param) { return op(Op.GT.getValue()).param(param); }
/** * Adds a '>=' operator with the given parameter. */ default CriteriaWhere<T> ge(Object param) { return op(Op.GE.getValue()).param(param); }
/** * Adds a condition expression "name op param", such as cnd("id","=",100); */ default CriteriaWhere<T> cnd(String name,String op,Object param) { return name(name).op(op).param(param); }
/** * Adds a in operator with the given parameter. */ default CriteriaWhere<T> in(Object... array) { return op(Op.IN.getValue()).param(array); }
/** * Adds a '=' operator with the given parameter. */ default CriteriaWhere<T> eq(Object param) { return op(Op.EQ.getValue()).param(param); }
/** * Adds a condition expression "name = param", such as cnd("id",100); */ default CriteriaWhere<T> cnd(String name,Object param) { return name(name).op(Op.EQ.getValue()).param(param); }
/** * Adds a condition expression "name op param", such as cnd("id","=",100); */ default CriteriaWhere<T> cnd(String name,Op op,Object param) { return name(name).op(op.getValue()).param(param); }