380381382383384385386
/** * A convenience method to create an OBJ_PATH "less than" expression. */ public static Expression lessExp(String pathSpec, Object value) { return new ASTLess(new ASTObjPath(pathSpec), value); }
396397398399400401402
/** * A convenience method to create an OBJ_PATH "less than or equal to" expression. */ public static Expression lessOrEqualExp(String pathSpec, Object value) { return new ASTLessOrEqual(new ASTObjPath(pathSpec), value); }
412413414415416417418
/** * A convenience method to create an OBJ_PATH "greater than" expression. */ public static Expression greaterExp(String pathSpec, Object value) { return new ASTGreater(new ASTObjPath(pathSpec), value); }
428429430431432433434
/** * A convenience method to create an OBJ_PATH "greater than or equal to" expression. */ public static Expression greaterOrEqualExp(String pathSpec, Object value) { return new ASTGreaterOrEqual(new ASTObjPath(pathSpec), value); }
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); }