/** * The field is not in the given set of values * * @param field * The field to compare * @param values * The value to compare to * @return the query */ public static Query notIn(String field, Collection<?> values) { return new Query().notIn(field, values); }
/** * The field is not in the given set of values * * @param field * The field to compare * @param values * The value to compare to * @return the query */ public static Query notIn(String field, Object... values) { return new Query().notIn(field, values); }
/** * The field is greater than the given value * * @param field * The field to compare * @param value * The value to compare to * @return the query */ public static Query greaterThan(String field, Object value) { return new Query().greaterThan(field, value); }
/** * The field is less than or equal to the given value * * @param field * The field to compare * @param value * The value to compare to * @return the query */ public static Query lessThanEquals(String field, Object value) { return new Query().lessThanEquals(field, value); }
/** * Create an empty query * * @return The empty query */ public static Query empty() { return new Query(); }
/** * One of the given expressions matches * * @param expressions * The expressions to test * @return the query */ public static Query or(Query... expressions) { return new Query().or(expressions); }
/** * The given field doesn't exist * * @param field * The field to check * @return the query */ public static Query notExists(String field) { return new Query().notExists(field); }
/** * The array field contains all of the given values * * @param field * The field to compare * @param values * The values to compare to * @return the query */ public static Query all(String field, Object... values) { return new Query().all(field, values); }
/** * The array field contains all of the given values * * @param field * The field to compare * @param values * The values to compare to * @return the query */ public static Query all(String field, Collection<?> values) { return new Query().all(field, values); }
/** * The field is equal to the given value * * @param field * The field to compare * @param value * The value to compare to * @return the query */ public static Query is(String field, Object value) { return new Query().is(field, value); }
/** * None of the given expressions match * * @param expressions * The expressions to test * @return the query */ public static Query nor(Query... expressions) { return new Query().nor(expressions); }
/** * The array field is of the given size * * @param field * The field to compare * @param size * The value to compare * @return the query */ public static Query size(String field, int size) { return new Query().size(field, size); }
/** * The field is in the given set of values * * @param field * The field to compare * @param values * The value to compare to * @return the query */ public static Query in(String field, Collection<?> values) { return new Query().in(field, values); }
/** * The field is in the given set of values * * @param field * The field to compare * @param values * The value to compare to * @return the query */ public static Query in(String field, Object... values) { return new Query().in(field, values); }
/** * The field is not equal to the given value * * @param field * The field to compare * @param value * The value to compare to * @return the query */ public static Query notEquals(String field, Object value) { return new Query().notEquals(field, value); }
/** * The given field exists * * @param field * The field to check * @return the query */ public static Query exists(String field) { return new Query().exists(field); }
/** * The field is greater than or equal to the given value * * @param field * The field to compare * @param value * The value to compare to * @return the query */ public static Query greaterThanEquals(String field, Object value) { return new Query().greaterThanEquals(field, value); }
/** * The field is less than the given value * * @param field * The field to compare * @param value * The value to compare to * @return the query */ public static Query lessThan(String field, Object value) { return new Query().lessThan(field, value); }
/** * Execute the given JavaScript code as part of the query * * @param code * the JavaScript code * @return the query */ public static Query where(String code) { return new Query().where(code); }
/** * The given field matches the regular expression * * @param field * The field to comare * @param regex * The regular expression to match with * @return the query */ public static Query regex(String field, Pattern regex) { return new Query().regex(field, regex); }