/** * 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 given field exists * * @param field The field to check * @return the query */ public static Query exists(String field) { return new Query().exists(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); }
/** * An element in the given array field matches the given query * * @param field the array field * @param query The query to attempt to match against the elements of the array field * @return the query */ public static Query elemMatch(String field, Query query) { return new Query().elemMatch(field, query); }
/** * The field, modulo the given mod argument, is equal to the value * * @param field The field to compare * @param mod The modulo * @param value The value to compare to * @return the query */ public static Query mod(String field, Number mod, Number value) { return new Query().mod(field, mod, value); }
/** * 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 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 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); }
/** * The field, modulo the given mod argument, is equal to the value * * @param field The field to compare * @param mod The modulo * @param value The value to compare to * @return the query */ public static Query mod(String field, Number mod, Number value) { return new Query().mod(field, mod, value); }
/** * 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 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); }
/** * 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 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 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); }
/** * 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); }
/** * 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 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); }