DATACMNS-554 - Added QueryDslPredicateExecutor.findAll(Predicate, Sort).
We now support findAll on QueryDslPredicateExecutor that accepts a Querydsl Predicate and a Sort. Original pull request: #115.
This commit is contained in:
committed by
Oliver Gierke
parent
950e0d3b7d
commit
ec643d21cb
@@ -17,6 +17,7 @@ package org.springframework.data.querydsl;
|
||||
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.domain.Sort;
|
||||
|
||||
import com.mysema.query.types.OrderSpecifier;
|
||||
import com.mysema.query.types.Predicate;
|
||||
@@ -48,6 +49,17 @@ public interface QueryDslPredicateExecutor<T> {
|
||||
*/
|
||||
Iterable<T> findAll(Predicate predicate);
|
||||
|
||||
/**
|
||||
* Returns all entities matching the given {@link Predicate} applying the given {@link Sort}. In case no match could
|
||||
* be found an empty {@link Iterable} is returned.
|
||||
*
|
||||
* @param predicate can be {@literal null}.
|
||||
* @param sort the {@link Sort} specification to sort the results by, must not be {@literal null}.
|
||||
* @return all entities matching the given {@link Predicate}.
|
||||
* @since 1.10
|
||||
*/
|
||||
Iterable<T> findAll(Predicate predicate, Sort sort);
|
||||
|
||||
/**
|
||||
* Returns all entities matching the given {@link Predicate} applying the given {@link OrderSpecifier}s. In case no
|
||||
* match could be found an empty {@link Iterable} is returned.
|
||||
|
||||
Reference in New Issue
Block a user