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