public interface QuerydslPredicateExecutor<T>
Predicate
instances.Modifier and Type | Method and Description |
---|---|
long |
count(com.querydsl.core.types.Predicate predicate)
Returns the number of instances matching the given
Predicate . |
boolean |
exists(com.querydsl.core.types.Predicate predicate)
Checks whether the data store contains elements that match the given
Predicate . |
Iterable<T> |
findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
Returns all entities ordered by the given
OrderSpecifier s. |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate)
Returns all entities matching the given
Predicate . |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
com.querydsl.core.types.OrderSpecifier<?>... orders)
Returns all entities matching the given
Predicate applying the given OrderSpecifier s. |
Page<T> |
findAll(com.querydsl.core.types.Predicate predicate,
Pageable pageable)
Returns a
Page of entities matching the given Predicate . |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
Sort sort)
Returns all entities matching the given
Predicate applying the given Sort . |
Optional<T> |
findOne(com.querydsl.core.types.Predicate predicate)
Returns a single entity matching the given
Predicate or Optional.empty() if none was found. |
Optional<T> findOne(com.querydsl.core.types.Predicate predicate)
Predicate
or Optional.empty()
if none was found.predicate
- must not be null.Predicate
or Optional.empty()
if none was found.IncorrectResultSizeDataAccessException
- if the predicate yields more than one
result.Iterable<T> findAll(com.querydsl.core.types.Predicate predicate)
Predicate
. In case no match could be found an empty
Iterable
is returned.predicate
- must not be null.Predicate
.Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, Sort sort)
Predicate
applying the given Sort
. In case no match could
be found an empty Iterable
is returned.predicate
- must not be null.sort
- the Sort
specification to sort the results by, may be Sort.unsorted()
, must not be
null.Predicate
.Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
Predicate
applying the given OrderSpecifier
s. In case no
match could be found an empty Iterable
is returned.predicate
- must not be null.orders
- the OrderSpecifier
s to sort the results by, must not be null.Predicate
applying the given OrderSpecifier
s.Iterable<T> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
OrderSpecifier
s.orders
- the OrderSpecifier
s to sort the results by, must not be null.OrderSpecifier
s.Page<T> findAll(com.querydsl.core.types.Predicate predicate, Pageable pageable)
Page
of entities matching the given Predicate
. In case no match could be found, an empty
Page
is returned.predicate
- must not be null.pageable
- may be Pageable.unpaged()
, must not be null.Page
of entities matching the given Predicate
.long count(com.querydsl.core.types.Predicate predicate)
Predicate
.predicate
- the Predicate
to count instances for, must not be null.Predicate
.boolean exists(com.querydsl.core.types.Predicate predicate)
Predicate
.predicate
- the Predicate
to use for the existence check, must not be null.Predicate
.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.