405406407408409410411
* A convenience method to create an DB_PATH "less than or equal to" expression. * * @since 3.0 */ public static Expression lessOrEqualDbExp(String pathSpec, Object value) { return new ASTLessOrEqual(new ASTDbPath(pathSpec), value); }
421422423424425426427
* A convenience method to create an DB_PATH "greater than" expression. * * @since 3.0 */ public static Expression greaterDbExp(String pathSpec, Object value) { return new ASTGreater(new ASTDbPath(pathSpec), value); }
437438439440441442443
* A convenience method to create an DB_PATH "greater than or equal to" expression. * * @since 3.0 */ public static Expression greaterOrEqualDbExp(String pathSpec, Object value) { return new ASTGreaterOrEqual(new ASTDbPath(pathSpec), value); }
459460461462463464465
*/ public static Expression inDbExp(String pathSpec, Object... values) { if (values.length == 0) { return new ASTFalse(); } return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values)); }
481482483484485486487
*/ public static Expression inDbExp(String pathSpec, Collection<?> values) { if (values.isEmpty()) { return new ASTFalse(); } return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values)); }
505506507508509510511
*/ public static Expression notInDbExp(String pathSpec, Collection<?> values) { if (values.isEmpty()) { return new ASTTrue(); } return new ASTNotIn(new ASTDbPath(pathSpec), new ASTList(values)); }
531532533534535536537
*/ public static Expression notInDbExp(String pathSpec, Object... values) { if (values.length == 0) { return new ASTTrue(); } return new ASTNotIn(new ASTDbPath(pathSpec), new ASTList(values)); }
547548549550551552553
* A convenience shortcut for building BETWEEN expressions. * * @since 3.0 */ public static Expression betweenDbExp(String pathSpec, Object value1, Object value2) { return new ASTBetween(new ASTDbPath(pathSpec), value1, value2); }
563564565566567568569
* A convenience shortcut for building NOT_BETWEEN expressions. * * @since 3.0 */ public static Expression notBetweenDbExp(String pathSpec, Object value1, Object value2) { return new ASTNotBetween(new ASTDbPath(pathSpec), value1, value2); }
579580581582583584585
* A convenience shortcut for building LIKE DB_PATH expression. * * @since 3.0 */ public static Expression likeDbExp(String pathSpec, Object value) { return new ASTLike(new ASTDbPath(pathSpec), value); }