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.Filter
on 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 boolean
equals(java.lang.Object o)
Query.FilterOperator
getOperator()
Gets the operator describing how to apply the filter.java.lang.String
getPropertyName()
Gets the name of the property to be filtered on.java.lang.Object
getValue()
Gets the argument to the filter operator.int
hashCode()
java.lang.String
toString()
-
-
-
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 ifoperator
isQuery.FilterOperator.IN
a non-emptyIterable
object 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-