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.
Constructor and Description |
---|
PojoIf() |
Modifier and Type | Method and Description |
---|---|
boolean |
matchesValue(Object onPojo)
Test a simple property value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matchesPojo
public final boolean matchesValue(Object onPojo)
If
matchesValue
in interface If<Object,P>
onPojo
- is the actual value of a particular fieldCopyright © 2016. All rights reserved.