Module spring.data.commons
Interface ListQueryByExampleExecutor<T>
- Type Parameters:
T- the type of entity for which this executor acts on.
- All Superinterfaces:
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 Summary
-
Method Details
-
findAll
Returns all entities matching the givenExample. In case no match could be found an emptyListis returned.- Specified by:
findAllin interfaceQueryByExampleExecutor<T>- Parameters:
example- must not be null.- Returns:
- all entities matching the given
Example.
-
findAll
Returns all entities matching the givenExampleapplying the givenSort. In case no match could be found an emptyListis returned.- Specified by:
findAllin interfaceQueryByExampleExecutor<T>- Parameters:
example- must not be null.sort- theSortspecification to sort the results by, may beSort.unsorted(), must not be null.- Returns:
- all entities matching the given
Example.
-