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
- Author:
- Oliver Gierke, Christoph Strobl, Diego Krupitza, Mark Paluch, Joshua Chen
-
Nested Class Summary
Nested classes/interfaces inherited from interface FluentQuery
FluentQuery.FetchableFluentQuery<T>, FluentQuery.ReactiveFluentQuery<T> -
Method Summary
Modifier and TypeMethodDescriptionlimit(int limit) page(Pageable pageable, PredicateSpecification<?> countSpec) Get a page of matching elements forPageableand provide a customcount specification.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 specifiedsortif theSortobject is notSort.isUnsorted(). Any potentially specifiedlimit(int)will be overridden byPageable.getPageSize().countSpec- specification used to count results.- Returns:
-
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:
-