|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface If<T,V>
A simple interface that defines a condition test for a field value or whole entity. For example, you could have a class that tests against null values called IfNull. This interface is used by the @NotSaved, @Indexed, and @Unindexed annotations.
Because the entity object is provided, partial indexes can be based on values other than the actual field in question.
All concrete instances of this interface must have either a no-arg constructor
or a constructor that takes Class<?>, Field
parameters.
Method Summary | |
---|---|
boolean |
matches(T value,
V onPojo)
Test a value (for a field) and/or an entity. |
Method Detail |
---|
boolean matches(T value, V onPojo)
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 |