classafMorphia::QueryCriterion
sys::Obj afMorphia::QueryCriterion
Defines match criterion for a field. Created and returned from Query.field()
methods.
- contains
Query contains(Str value, Bool caseInsensitive := true)
Matches string values that contain the given value.
Note that matching is performed with regular expressions.
- endsWith
Query endsWith(Str value, Bool caseInsensitive := true)
Matches string values that end with the given value.
Note that matching is performed with regular expressions.
- eq
Query eq(Obj? value)
Matches values that are equal to the given object.
- eqIgnoreCase
Query eqIgnoreCase(Str value)
Matches string values that equal (ignoring case) the given value.
Note that matching is performed with regular expressions.
- exists
Query exists(Bool exists := true)
Matches if the field exists (or not), even if it is
null
.@see http://docs.mongodb.org/manual/reference/operator/query/exists/
- greaterThan
Query greaterThan(Obj value)
Matches values that are greater than the given object.
@see http://docs.mongodb.org/manual/reference/operator/query/gt/
- greaterThanOrEqTo
Query greaterThanOrEqTo(Obj value)
Matches values that are greater than or equal to the given object.
@see http://docs.mongodb.org/manual/reference/operator/query/gte/
- in
Query in(Obj[] values)
Matches values that equal any one of the given values.
@see http://docs.mongodb.org/manual/reference/operator/query/in/
- lessThan
Query lessThan(Obj value)
Matches values that are less than the given object.
@see http://docs.mongodb.org/manual/reference/operator/query/gt/
- lessThanOrEqTo
Query lessThanOrEqTo(Obj value)
Matches values that are less than or equal to the given object.
@see http://docs.mongodb.org/manual/reference/operator/query/lte/
- matchesRegex
Query matchesRegex(Regex regex)
Matches string values that equal the given regular expression.
- mod
Query mod(Int divisor, Int remainder)
Matches values based on their remainder after a division (modulo operation).
@see http://docs.mongodb.org/manual/reference/operator/query/mod/
- not
QueryCriterion not()
Selects documents that do not match the given following criterion. Example:
Query.field("price").not.lessThan(10)
Note this also matches documents that do not contain the field.
@see http://docs.mongodb.org/manual/reference/operator/query/not/
- notEq
Query notEq(Obj? value)
Matches values that are not equal to the given object.
Note this also matches documents that do not contain the field.
@see http://docs.mongodb.org/manual/reference/operator/query/ne/
- notIn
Query notIn(Obj[] values)
Matches values that do not equal any one of the given values.
Note this also matches documents that do not contain the field.
@see http://docs.mongodb.org/manual/reference/operator/query/nin/
- startsWith
Query startsWith(Str value, Bool caseInsensitive := true)
Matches string values that start with the given value.
Note that matching is performed with regular expressions.