Package com.googlecode.objectify.cmd
Class Filter
java.lang.Object
com.googlecode.objectify.cmd.Filter
Gives us the ability to compose arbitrarily complex filters with OR and AND sections.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Filter
Combine an arbitrary list of filter conditions.abstract com.google.cloud.datastore.StructuredQuery.Filter
convert
(ObjectifyImpl ofyImpl) Convert to a low level API filter.static Filter
Create a filter condition that requires the property to equal the scalar value.static Filter
greaterThan
(String property, Object value) Create a filter condition that requires the property to be greater than the scalar valuestatic Filter
greaterThanOrEqualTo
(String property, Object value) Create a filter condition that requires the property to be greater than or equal to scalar valuestatic Filter
Create a filter condition that requires the property to be equal to at least one of a list of scalar values.static Filter
Create a filter condition that requires the property to be less than the scalar valuestatic Filter
lessThanOrEqualTo
(String property, Object value) Create a filter condition that requires the property to be less than or equal to the scalar valuestatic Filter
notEqualTo
(String property, Object value) Create a filter condition that requires the property to not be equal to the scalar value.static Filter
Create a filter condition that requires the property to NOT be equal to any of a list of scalar values.
-
Constructor Details
-
Filter
public Filter()
-
-
Method Details
-
equalTo
Create a filter condition that requires the property to equal the scalar value. -
notEqualTo
Create a filter condition that requires the property to not be equal to the scalar value. -
greaterThan
Create a filter condition that requires the property to be greater than the scalar value -
greaterThanOrEqualTo
Create a filter condition that requires the property to be greater than or equal to scalar value -
lessThan
Create a filter condition that requires the property to be less than the scalar value -
lessThanOrEqualTo
Create a filter condition that requires the property to be less than or equal to the scalar value -
in
Create a filter condition that requires the property to be equal to at least one of a list of scalar values.- Parameters:
value
- must be an array or collection
-
notIn
Create a filter condition that requires the property to NOT be equal to any of a list of scalar values.- Parameters:
value
- must be an array or collection
-
and
Combine an arbitrary list of filter conditions. They can be nested. -
convert
Convert to a low level API filter.
-