java.lang.Object
software.xdev.spring.data.eclipse.store.repository.query.criteria.CriteriaByExample<T,S>
- All Implemented Interfaces:
Criteria<T>
public class CriteriaByExample<T,S extends T>
extends Object
implements Criteria<T>
Creates a criteria from Examples. Needed to implement QueryByExampleExecutor.
-
Constructor Summary
Constructors
-
Method Summary
boolean
Checks the criteria against the given object.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CriteriaByExample
public CriteriaByExample(org.springframework.data.domain.Example<S> example)
-
Method Details
-
evaluate
public boolean evaluate(T object)
Description copied from interface: Criteria
Checks the criteria against the given object.
- Specified by:
evaluate in interface Criteria<T>
- Parameters:
object - to check the criteria against.
- Returns:
true if the object is within the criteria, false if not.