Class PojoIf<P>
- java.lang.Object
-
- com.googlecode.objectify.condition.PojoIf<P>
-
public abstract class PojoIf<P> extends Object implements If<Object,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
-
-
Constructor Summary
Constructors Constructor Description PojoIf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
matchesValue
public final boolean matchesValue(Object onPojo)
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.
-
-