Uses of Class
org.springframework.data.domain.Sort
Package
Description
Central domain abstractions especially to be used in combination with the
Repository
abstraction.Central domain abstractions especially to be used in combination with the
Repository
abstraction.Basic interfaces and value objects for histography API.
Querydsl integration support classes.
Central interfaces for repository abstraction.
Support classes to work with query methods.
Support classes for parsing queries from method names.
Support for reactive repositories.
Support classes for integration of the repository programming model with 3rd party frameworks.
Integration with Spring MVC.
-
Uses of Sort in org.springframework.data.domain
Modifier and TypeClassDescriptionstatic class
Extension of Sort to use method handles to define properties to sort by.Modifier and TypeMethodDescriptionSort.ascending()
Returns a newSort
with the current setup but ascending order direction.Sort.TypedSort.ascending()
static Sort
Creates a newSort
for the given properties.static Sort
Sort.by
(List<Sort.Order> orders) Creates a newSort
for the givenSort.Order
s.static Sort
Sort.by
(Sort.Direction direction, String... properties) Creates a newSort
for the givenSort.Direction
and properties.static Sort
Sort.by
(Sort.Order... orders) Creates a newSort
for the givenSort.Order
s.Sort.descending()
Returns a newSort
with the current setup but descending order direction.Sort.TypedSort.descending()
Pageable.getSort()
Returns the sorting parameters.PageRequest.getSort()
Slice.getSort()
Returns the sorting parameters for theSlice
.default Sort
Returns the currentSort
or the given one if the current one is unsorted.Sort.reverse()
Returns a newSort
with reversed sortSort.Order
s turning effectively asccending into descending sort order and vice versa.static Sort
Sort.unsorted()
Returns aSort
instances representing no sorting setup at all.Sort.Order.withProperties
(String... properties) Returns a newSort
instance for the given properties.Modifier and TypeMethodDescriptiondefault Sort
Returns the currentSort
or the given one if the current one is unsorted.static PageRequest
Creates a newPageRequest
with sort parameters applied.static Pageable
Creates a newPageRequest
withSort
applied.ModifierConstructorDescriptionprotected
PageRequest
(int pageNumber, int pageSize, Sort sort) Creates a newPageRequest
with sort parameters applied. -
Uses of Sort in org.springframework.data.domain.jaxb
-
Uses of Sort in org.springframework.data.history
Modifier and TypeClassDescriptionclass
A dedicatedSort
implementation that allows the definition of the ordering of revisions independently of the property name the revision number is held in.Modifier and TypeMethodDescriptionstatic Sort.Direction
RevisionSort.getRevisionDirection
(Sort sort) Returns in which direction to sort revisions for the givenSort
instance. -
Uses of Sort in org.springframework.data.querydsl
Modifier and TypeClassDescriptionclass
Sort option for queries that wraps a QuerydslOrderSpecifier
.Modifier and TypeMethodDescriptionReturns all entities matching the givenPredicate
applying the givenSort
.Returns all entities matching the givenPredicate
applying the givenSort
.reactor.core.publisher.Flux<T>
QuerydslRepositoryInvokerAdapter.invokeFindAll
(Sort sort) QuerydslRepositoryInvokerAdapter.invokeQueryMethod
(Method method, MultiValueMap<String, ? extends Object> parameters, Pageable pageable, Sort sort) -
Uses of Sort in org.springframework.data.repository
-
Uses of Sort in org.springframework.data.repository.query
Modifier and TypeMethodDescriptionParameterAccessor.getSort()
Returns the sort instance to be used for query creation.ParametersParameterAccessor.getSort()
Modifier and TypeMethodDescription<S extends T>
reactor.core.publisher.Flux<S>Define the sort order. -
Uses of Sort in org.springframework.data.repository.query.parser
Modifier and TypeMethodDescriptionPartTree.getSort()
Returns theSort
specification parsed from the source.Modifier and TypeMethodDescriptionprotected abstract T
Actually creates the query object applying the given criteria object andSort
definition.AbstractQueryCreator.createQuery
(Sort dynamicSort) Creates the actual query object applying the givenSort
parameter. -
Uses of Sort in org.springframework.data.repository.reactive
-
Uses of Sort in org.springframework.data.repository.support
Modifier and TypeMethodDescriptionRepositoryInvoker.invokeFindAll
(Sort sort) Invokes the find-all method of the underlying repository using the method taking aSort
as parameter if available (i.e. the equivalent toPagingAndSortingRepository.findAll(Sort)
) or the plain equivalent toCrudRepository.findAll()
.RepositoryInvoker.invokeQueryMethod
(Method method, MultiValueMap<String, ? extends Object> parameters, Pageable pageable, Sort sort) -
Uses of Sort in org.springframework.data.web
Modifier and TypeMethodDescriptionprotected Sort
SortHandlerMethodArgumentResolverSupport.getDefaultFromAnnotationOrFallback
(MethodParameter parameter) Reads the defaultSort
to be used from the givenMethodParameter
.SortArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Resolves aSort
method parameter into an argument value from a given request.SortHandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) ReactiveSortHandlerMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Modifier and TypeMethodDescriptionSortHandlerMethodArgumentResolverSupport.foldIntoExpressions
(Sort sort) Folds the givenSort
instance into aList
of sort expressions, accumulatingSort.Order
instances of the same direction into a single expression if they are in order.SortHandlerMethodArgumentResolverSupport.legacyFoldExpressions
(Sort sort) Folds the givenSort
instance into two expressions.void
SortHandlerMethodArgumentResolverSupport.setFallbackSort
(Sort fallbackSort) Configures theSort
to be used as fallback in case noSortDefault
orSortDefault.SortDefaults
(the latter only supported in legacy mode) can be found at the method parameter to be resolved.