|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.condition.PojoIf<V>
public abstract class PojoIf<V>
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 of 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.
Constructor Summary | |
---|---|
PojoIf()
|
Method Summary | |
---|---|
boolean |
matches(java.lang.Object value,
V onPojo)
Test a value (for a field) and/or an entity. |
abstract boolean |
matches(V pojo)
Override this method to test a whole pojo for your condition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PojoIf()
Method Detail |
---|
public abstract boolean matches(V pojo)
public final boolean matches(java.lang.Object value, V onPojo)
If
matches
in interface If<java.lang.Object,V>
value
- is the actual value of a particular fieldonPojo
- is the entity object on which the field/value exists
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |