Class Query.FilterPredicate
- java.lang.Object
-
- com.google.appengine.api.datastore.Query.Filter
-
- com.google.appengine.api.datastore.Query.FilterPredicate
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Query
public static final class Query.FilterPredicate extends Query.Filter
AQuery.Filteron a single property.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilterPredicate(String propertyName, Query.FilterOperator operator, Object value)Constructs a filter predicate from the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable Object o)Query.FilterOperatorgetOperator()Gets the operator describing how to apply the filter.StringgetPropertyName()Gets the name of the property to be filtered on.ObjectgetValue()Gets the argument to the filter operator.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
FilterPredicate
public FilterPredicate(String propertyName, Query.FilterOperator operator, Object value)
Constructs a filter predicate from the given parameters.- Parameters:
propertyName- the name of the property on which to filteroperator- the operator to applyvalue- A single instances of a supported type or ifoperatorisQuery.FilterOperator.INa non-emptyIterableobject containing instances of supported types.- Throws:
IllegalArgumentException- If the provided filter values are not supported.- See Also:
DataTypeUtils.isSupportedType(Class)
-
-
Method Detail
-
getPropertyName
public String getPropertyName()
Gets the name of the property to be filtered on.
-
getOperator
public Query.FilterOperator getOperator()
Gets the operator describing how to apply the filter.
-
getValue
public Object getValue()
Gets the argument to the filter operator.
-
-