Example usage for Java org.springframework.data.mongodb.core.query Criteria fields, constructors, methods, implement or subclass
The text is from its open source code.
Criteria | all(Object... o) Creates a criterion using the $all operator. |
Criteria | all(Collection> o) Creates a criterion using the $all operator. |
Criteria | and(String key) Static factory method to create a Criteria using the provided key |
Criteria | andOperator(Criteria... criteria) Creates an 'and' criteria using the $and operator for all of the provided criteria. |
Criteria | exists(boolean b) Creates a criterion using the $exists operator. |
Document | getCriteriaObject() |
String | getKey() |
Criteria | gt(Object o) Creates a criterion using the $gt operator. |
Criteria | gte(Object o) Creates a criterion using the $gte operator. |
Criteria | in(Object... o) Creates a criterion using the $in operator. |
Criteria | in(Collection> c) Creates a criterion using the $in operator. |
Criteria | is(@Nullable Object o) Creates a criterion using equality |
Criteria | lt(Object o) Creates a criterion using the $lt operator. |
Criteria | lte(Object o) Creates a criterion using the $lte operator. |
Criteria | maxDistance(double maxDistance) Creates a geo-spatial criterion using a $maxDistance operation, for use with $near |
Criteria | ne(@Nullable Object o) Creates a criterion using the $ne operator. |
Criteria | near(Point point) Creates a geospatial criterion using a $near operation. |
Criteria | nearSphere(Point point) Creates a geospatial criterion using a $nearSphere operation. |
Criteria | nin(Object... o) Creates a criterion using the $nin operator. |
Criteria | nin(Collection> o) Creates a criterion using the $nin operator. |
Criteria | not() Creates a criterion using the $not meta operator which affects the clause directly following |
Criteria | orOperator(Criteria... criteria) Creates an 'or' criteria using the $or operator for all of the provided criteria Note that mongodb doesn't support an $or operator to be wrapped in a $not operator. |
Criteria | regex(String re) Creates a criterion using a $regex operator. |
Criteria | regex(Pattern pattern) Syntactical sugar for #is(Object) making obvious that we create a regex predicate. |
Criteria | regex(BsonRegularExpression regex) |
Criteria | regex(String re, @Nullable String options) Creates a criterion using a $regex and $options operator. |
Criteria | where(String key) Static factory method to create a Criteria using the provided key |
Criteria | within(Shape shape) Creates a geospatial criterion using a $geoWithin operation. |