public interface JpaSpecificationExecutor<T>
Specifications based on the JPA criteria API.| Modifier and Type | Method and Description |
|---|---|
long |
count(Specification<T> spec)
Returns the number of instances that the given
Specification will return. |
List<T> |
findAll(Specification<T> spec)
Returns all entities matching the given
Specification. |
Page<T> |
findAll(Specification<T> spec,
Pageable pageable)
Returns a
Page of entities matching the given Specification. |
List<T> |
findAll(Specification<T> spec,
Sort sort)
Returns all entities matching the given
Specification and Sort. |
T |
findOne(Specification<T> spec)
Returns a single entity matching the given
Specification. |
T findOne(Specification<T> spec)
Specification.spec - List<T> findAll(Specification<T> spec)
Specification.spec - Page<T> findAll(Specification<T> spec, Pageable pageable)
Page of entities matching the given Specification.spec - pageable - List<T> findAll(Specification<T> spec, Sort sort)
Specification and Sort.spec - sort - long count(Specification<T> spec)
Specification will return.spec - the Specification to count instances forCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.