Java org.springframework.data.mongodb.core.query Criteria fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.data.mongodb.core.query Criteria fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.data.mongodb.core.query Criteria.

The text is from its open source code.

Subclass

org.springframework.data.mongodb.core.query.Criteria has subclasses.
Click this link to see all its subclasses.

Constructor

Method

Criteriaall(Object... o)
Creates a criterion using the $all operator.
Criteriaall(Collection o)
Creates a criterion using the $all operator.
Criteriaand(String key)
Static factory method to create a Criteria using the provided key
CriteriaandOperator(Criteria... criteria)
Creates an 'and' criteria using the $and operator for all of the provided criteria.
Criteriaexists(boolean b)
Creates a criterion using the $exists operator.
DocumentgetCriteriaObject()
StringgetKey()
Criteriagt(Object o)
Creates a criterion using the $gt operator.
Criteriagte(Object o)
Creates a criterion using the $gte operator.
Criteriain(Object... o)
Creates a criterion using the $in operator.
Criteriain(Collection c)
Creates a criterion using the $in operator.
Criteriais(@Nullable Object o)
Creates a criterion using equality
Criterialt(Object o)
Creates a criterion using the $lt operator.
Criterialte(Object o)
Creates a criterion using the $lte operator.
CriteriamaxDistance(double maxDistance)
Creates a geo-spatial criterion using a $maxDistance operation, for use with $near
Criteriane(@Nullable Object o)
Creates a criterion using the $ne operator.
Criterianear(Point point)
Creates a geospatial criterion using a $near operation.
CriterianearSphere(Point point)
Creates a geospatial criterion using a $nearSphere operation.
Criterianin(Object... o)
Creates a criterion using the $nin operator.
Criterianin(Collection o)
Creates a criterion using the $nin operator.
Criterianot()
Creates a criterion using the $not meta operator which affects the clause directly following
CriteriaorOperator(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.

Criteriaregex(String re)
Creates a criterion using a $regex operator.
Criteriaregex(Pattern pattern)
Syntactical sugar for #is(Object) making obvious that we create a regex predicate.
Criteriaregex(BsonRegularExpression regex)
Criteriaregex(String re, @Nullable String options)
Creates a criterion using a $regex and $options operator.
Criteriawhere(String key)
Static factory method to create a Criteria using the provided key
Criteriawithin(Shape shape)
Creates a geospatial criterion using a $geoWithin operation.