Class CriteriaByExample<T,S extends T>

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 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.