|
Spring Data Jpa | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JpaSpecificationExecutor<T>
Interface to allow execution of Specifications based on the JPA
criteria API.
| Method Summary | |
|---|---|
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. |
org.springframework.data.domain.Page<T> |
findAll(Specification<T> spec,
org.springframework.data.domain.Pageable pageable)
Returns a Page of entities matching the given
Specification. |
T |
findOne(Specification<T> spec)
Returns a single entity matching the given Specification. |
| Method Detail |
|---|
T findOne(Specification<T> spec)
Specification.
spec -
List<T> findAll(Specification<T> spec)
Specification.
spec -
org.springframework.data.domain.Page<T> findAll(Specification<T> spec,
org.springframework.data.domain.Pageable pageable)
Page of entities matching the given
Specification.
spec - pageable -
Long count(Specification<T> spec)
Specification will
return.
spec - the Specification to count instances for
|
Spring Data Jpa | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||