classafMorphia::QueryCriterion

sys::Obj
  afMorphia::QueryCriterion

Defines match criterion for a field. Created and returned from Query.field() methods.

contains

Source

Query contains(Str value, Bool caseInsensitive := true)

Matches string values that contain the given value.

Note that matching is performed with regular expressions.

endsWith

Source

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

Source

Query eq(Obj? value)

Matches values that are equal to the given object.

eqIgnoreCase

Source

Query eqIgnoreCase(Str value)

Matches string values that equal (ignoring case) the given value.

Note that matching is performed with regular expressions.

exists

Source

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

Source

Query greaterThan(Obj value)

Matches values that are greater than the given object.

@see http://docs.mongodb.org/manual/reference/operator/query/gt/

greaterThanOrEqTo

Source

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

Source

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

Source

Query lessThan(Obj value)

Matches values that are less than the given object.

@see http://docs.mongodb.org/manual/reference/operator/query/gt/

lessThanOrEqTo

Source

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

Source

Query matchesRegex(Regex regex)

Matches string values that equal the given regular expression.

mod

Source

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

Source

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

Source

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

Source

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

Source

Query startsWith(Str value, Bool caseInsensitive := true)

Matches string values that start with the given value.

Note that matching is performed with regular expressions.