480481482483484485486
*/ public static Expression inDbExp(String pathSpec, Collection<?> values) { if (values.isEmpty()) { return new ASTFalse(); } return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values)); }
355356357358359360361
*/ public static Expression inExp(String pathSpec, Object... values) { if (values.length == 0) { return new ASTFalse(); } return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values)); }
366367368369370371372
*/ public static Expression inDbExp(String pathSpec, Object... values) { if (values.length == 0) { return new ASTFalse(); } return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values)); }
377378379380381382383
*/ public static Expression inExp(String pathSpec, Collection<?> values) { if (values.isEmpty()) { return new ASTFalse(); } return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values)); }
388389390391392393394
283284285286287288289
/** * A convenience shortcut for building IN DB expression. */ public static Expression inDbExp(String pathSpec, Object[] values) { return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values)); }
290291292293294295296
/** * A convenience shortcut for building IN DB expression. */ public static Expression inDbExp(String pathSpec, Collection values) { return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values)); }
339340341342343344345
/** * A convenience shortcut for building IN expression. */ public static Expression inExp(String pathSpec, Object[] values) { return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values)); }
346347348349350351352
/** * A convenience shortcut for building IN expression. */ public static Expression inExp(String pathSpec, Collection values) { return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values)); }
369370371372373374375
*/ public static Expression inExp(String pathSpec, Object[] values) { if (values.length == 0) { return new ASTFalse(); } return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values)); }