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 <[email protected]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanmatchesValue(Object onPojo) Test a simple property value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.googlecode.objectify.condition.If
matchesPojo
-
Constructor Details
-
PojoIf
public PojoIf()
-
-
Method Details
-
matchesValue
Description copied from interface:IfTest a simple property value.- Specified by:
matchesValuein 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.
-