com.google.appengine.api.datastore
Class Query.FilterPredicate
- java.lang.Object
-
- com.google.appengine.api.datastore.Query.Filter
-
- com.google.appengine.api.datastore.Query.FilterPredicate
-
- All Implemented Interfaces:
- java.io.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 and Description FilterPredicate(java.lang.String propertyName, Query.FilterOperator operator, java.lang.Object value)Constructs a filter predicate from the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)Query.FilterOperatorgetOperator()Gets the operator describing how to apply the filter.java.lang.StringgetPropertyName()Gets the name of the property to be filtered on.java.lang.ObjectgetValue()Gets the argument to the filter operator.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
FilterPredicate
public FilterPredicate(java.lang.String propertyName, Query.FilterOperator operator, java.lang.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:
java.lang.IllegalArgumentException- If the provided filter values are not supported.- See Also:
DataTypeUtils.isSupportedType(Class)
-
-
Method Detail
-
getPropertyName
public java.lang.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 java.lang.Object getValue()
Gets the argument to the filter operator.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-