Uses of Class
org.springframework.data.domain.Sort
Packages that use 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
Subclasses of Sort in org.springframework.data.domainModifier and TypeClassDescriptionstatic class
Extension of Sort to use method handles to define properties to sort by.Methods in org.springframework.data.domain that return SortModifier 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.Methods in org.springframework.data.domain with parameters of type SortModifier 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.Constructors in org.springframework.data.domain with parameters of type SortModifierConstructorDescriptionprotected
PageRequest
(int pageNumber, int pageSize, Sort sort) Creates a newPageRequest
with sort parameters applied. -
Uses of Sort in org.springframework.data.domain.jaxb
Methods in org.springframework.data.domain.jaxb that return SortMethods in org.springframework.data.domain.jaxb with parameters of type Sort -
Uses of Sort in org.springframework.data.history
Subclasses of Sort in org.springframework.data.historyModifier 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.Methods in org.springframework.data.history with parameters of type SortModifier 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
Subclasses of Sort in org.springframework.data.querydslModifier and TypeClassDescriptionclass
Sort option for queries that wraps a QuerydslOrderSpecifier
.Methods in org.springframework.data.querydsl that return SortMethods in org.springframework.data.querydsl with parameters of type SortModifier 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
Methods in org.springframework.data.repository with parameters of type Sort -
Uses of Sort in org.springframework.data.repository.query
Methods in org.springframework.data.repository.query that return SortModifier and TypeMethodDescriptionParameterAccessor.getSort()
Returns the sort instance to be used for query creation.ParametersParameterAccessor.getSort()
Methods in org.springframework.data.repository.query with parameters of type SortModifier and TypeMethodDescription<S extends T>
reactor.core.publisher.Flux<S>Define the sort order. -
Uses of Sort in org.springframework.data.repository.query.parser
Methods in org.springframework.data.repository.query.parser that return SortModifier and TypeMethodDescriptionPartTree.getSort()
Returns theSort
specification parsed from the source.Methods in org.springframework.data.repository.query.parser with parameters of type SortModifier 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
Methods in org.springframework.data.repository.reactive with parameters of type Sort -
Uses of Sort in org.springframework.data.repository.support
Methods in org.springframework.data.repository.support with parameters of type SortModifier 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
Methods in org.springframework.data.web that return SortModifier 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) Methods in org.springframework.data.web with parameters of type SortModifier 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.