Module spring.data.jpa
Interface JpaSpecificationExecutor.SpecificationFluentQuery<T>
- Type Parameters:
T-
- All Superinterfaces:
FluentQuery<T>,FluentQuery.FetchableFluentQuery<T>
- Enclosing interface:
- JpaSpecificationExecutor<T>
public static interface JpaSpecificationExecutor.SpecificationFluentQuery<T>
extends FluentQuery.FetchableFluentQuery<T>
Extension to
FluentQuery.FetchableFluentQuery allowing slice results and pagination with a custom count
Specification.- Since:
- 3.5
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.repository.query.FluentQuery
FluentQuery.FetchableFluentQuery<T extends Object>, FluentQuery.ReactiveFluentQuery<T extends Object> -
Method Summary
Modifier and TypeMethodDescriptionlimit(int limit) page(Pageable pageable, Specification<?> countSpec) Get a page of matching elements forPageableand provide a customcount specification.project(Collection<String> properties)
-
Method Details
-
sortBy
- Specified by:
sortByin interfaceFluentQuery<T>- Specified by:
sortByin interfaceFluentQuery.FetchableFluentQuery<T>
-
limit
- Specified by:
limitin interfaceFluentQuery<T>- Specified by:
limitin interfaceFluentQuery.FetchableFluentQuery<T>
-
as
- Specified by:
asin interfaceFluentQuery<T>- Specified by:
asin interfaceFluentQuery.FetchableFluentQuery<T>
-
project
- Specified by:
projectin interfaceFluentQuery<T>- Specified by:
projectin interfaceFluentQuery.FetchableFluentQuery<T>
-
project
- Specified by:
projectin interfaceFluentQuery<T>- Specified by:
projectin interfaceFluentQuery.FetchableFluentQuery<T>
-
page
Get a page of matching elements forPageableand provide a customcount specification.- Parameters:
pageable- the pageable to request a paged result, can bePageable.unpaged(), must not be null. The givenPageablewill override any previously specifiedsort. Any potentially specifiedlimit(int)will be overridden byPageable.getPageSize().countSpec- specification used to count results.- Returns:
-