Interface EntityViewSpecificationExecutor<V,E>
- Type Parameters:
V- The view typeE- The entity type
public interface EntityViewSpecificationExecutor<V,E>
Like
JpaSpecificationExecutor but allows to specify an entity view
return type.- Since:
- 1.6.9
- Author:
- Moritz Becker, Eugen Mayer
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of instances that the givenSpecificationwill return.Returns all views matching the givenSpecification.org.springframework.data.domain.Page<V>findAll(org.springframework.data.jpa.domain.Specification<E> spec, org.springframework.data.domain.Pageable pageable) Returns aPageof views matching the givenSpecification.findAll(org.springframework.data.jpa.domain.Specification<E> spec, org.springframework.data.domain.Sort sort) Returns all views matching the givenSpecificationin the order defined bySort.Returns a single view matching the givenSpecification.
-
Method Details
-
findOne
Returns a single view matching the givenSpecification.- Parameters:
spec- The specification for filtering- Returns:
- The matching view
-
findAll
Returns all views matching the givenSpecification.- Parameters:
spec- The specification for filtering- Returns:
- All matching views
-
findAll
org.springframework.data.domain.Page<V> findAll(org.springframework.data.jpa.domain.Specification<E> spec, org.springframework.data.domain.Pageable pageable) Returns aPageof views matching the givenSpecification.- Parameters:
spec- The specification for filteringpageable- The pagination information- Returns:
- The requested page of matching views
-
findAll
List<V> findAll(org.springframework.data.jpa.domain.Specification<E> spec, org.springframework.data.domain.Sort sort) Returns all views matching the givenSpecificationin the order defined bySort.- Parameters:
spec- The specification for filteringsort- The sort order definition- Returns:
- All matching views in the requested order
-
count
Returns the number of instances that the givenSpecificationwill return.- Parameters:
spec- theSpecificationto count instances for- Returns:
- the number of instances
-