448449450451452453454
*/ public static Expression inExp(String pathSpec, Object... values) { if (values.length == 0) { return new ASTFalse(); } return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values)); }
470471472473474475476
*/ public static Expression inExp(String pathSpec, Collection<?> values) { if (values.isEmpty()) { return new ASTFalse(); } return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values)); }
492493494495496497498
*/ public static Expression notInExp(String pathSpec, Collection<?> values) { if (values.isEmpty()) { return new ASTTrue(); } return new ASTNotIn(new ASTObjPath(pathSpec), new ASTList(values)); }
518519520521522523524
*/ public static Expression notInExp(String pathSpec, Object... values) { if (values.length == 0) { return new ASTTrue(); } return new ASTNotIn(new ASTObjPath(pathSpec), new ASTList(values)); }
538539540541542543544
/** * A convenience shortcut for building BETWEEN expressions. */ public static Expression betweenExp(String pathSpec, Object value1, Object value2) { return new ASTBetween(new ASTObjPath(pathSpec), value1, value2); }
554555556557558559560
/** * A convenience shortcut for building NOT_BETWEEN expressions. */ public static Expression notBetweenExp(String pathSpec, Object value1, Object value2) { return new ASTNotBetween(new ASTObjPath(pathSpec), value1, value2); }
570571572573574575576
/** * A convenience shortcut for building LIKE expression. */ public static Expression likeExp(String pathSpec, Object value) { return new ASTLike(new ASTObjPath(pathSpec), value); }
584585586587588589590
* escape character.</p> * * @since 3.0.1 */ public static Expression likeExp(String pathSpec, Object value, char escapeChar) { return new ASTLike(new ASTObjPath(pathSpec), value, escapeChar); }
614615616617618619620
/** * A convenience shortcut for building NOT_LIKE expression. */ public static Expression notLikeExp(String pathSpec, Object value) { return new ASTNotLike(new ASTObjPath(pathSpec), value); }
628629630631632633634
* escape character.</p> * * @since 3.0.1 */ public static Expression notLikeExp(String pathSpec, Object value, char escapeChar) { return new ASTNotLike(new ASTObjPath(pathSpec), value, escapeChar); }