Class PojoIf<P>
java.lang.Object
com.googlecode.objectify.condition.PojoIf<P>
Base class for If classes that test against a whole POJO object. This allows partial indexes to test against field values which are not the field being indexed.
The pojo will be an entity if the field is on an entity, or an embedded class if the field is on an embedded class.
All concrete instances of this interface must have either a no-arg constructor
or a constructor that takes Class<?>, Field
parameters.
- Author:
- Jeff Schnitzer invalid input: '<'[email protected]>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
matchesValue
(Object onPojo) Test a simple property value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.googlecode.objectify.condition.If
matchesPojo
-
Constructor Details
-
PojoIf
public PojoIf()
-
-
Method Details
-
matchesValue
Description copied from interface:If
Test a simple property value.- Specified by:
matchesValue
in interfaceIf<Object,
P> - Parameters:
onPojo
- is the actual value of a particular field- Returns:
- true if the value matches the condition defined by an instance of this interface.
-