Interface ListQueryByExampleExecutor<T>

Type Parameters:
T - the type of entity for which this executor acts on.
All Superinterfaces:
QueryByExampleExecutor<T>

public interface ListQueryByExampleExecutor<T> extends QueryByExampleExecutor<T>
Interface to allow execution of Query by Example Example instances. This an extension to QueryByExampleExecutor returning List instead of Iterable where applicable.
Since:
3.0
Author:
Jens Schauder
See Also:
  • Method Details

    • findAll

      <S extends T> List<S> findAll(Example<S> example)
      Returns all entities matching the given Example. In case no match could be found an empty List is returned.
      Specified by:
      findAll in interface QueryByExampleExecutor<T>
      Parameters:
      example - must not be null.
      Returns:
      all entities matching the given Example.
    • findAll

      <S extends T> List<S> findAll(Example<S> example, Sort sort)
      Returns all entities matching the given Example applying the given Sort. In case no match could be found an empty List is returned.
      Specified by:
      findAll in interface QueryByExampleExecutor<T>
      Parameters:
      example - must not be null.
      sort - the Sort specification to sort the results by, may be Sort.unsorted(), must not be null.
      Returns:
      all entities matching the given Example.