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 that the given
Predicate will return. |
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 OrderSpecifier s. |
Page<T> |
findAll(com.mysema.query.types.Predicate predicate,
Pageable pageable)
Returns a
Page of entities matching the given Predicate . |
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
- 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
- Predicate
.Iterable<T> findAll(com.mysema.query.types.Predicate predicate, com.mysema.query.types.OrderSpecifier<?>... orders)
Predicate
applying the given OrderSpecifier
s. In case no
match could be found an empty Iterable
is returned.predicate
- orders
- Predicate
applying the given OrderSpecifier
s.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
- pageable
- Page
of entities matching the given Predicate
.long count(com.mysema.query.types.Predicate predicate)
Predicate
will return.predicate
- the Predicate
to count instances forCopyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.