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 classExtension 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 newSortwith the current setup but ascending order direction.Sort.TypedSort.ascending()static SortCreates a newSortfor the given properties.static SortSort.by(List<Sort.Order> orders) Creates a newSortfor the givenSort.Orders.static SortSort.by(Sort.Direction direction, String... properties) Creates a newSortfor the givenSort.Directionand properties.static SortSort.by(Sort.Order... orders) Creates a newSortfor the givenSort.Orders.Sort.descending()Returns a newSortwith 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 SortReturns the currentSortor the given one if the current one is unsorted.Sort.reverse()Returns a newSortwith reversed sortSort.Orders turning effectively asccending into descending sort order and vice versa.static SortSort.unsorted()Returns aSortinstances representing no sorting setup at all.Sort.Order.withProperties(String... properties) Returns a newSortinstance for the given properties.Methods in org.springframework.data.domain with parameters of type SortModifier and TypeMethodDescriptiondefault SortReturns the currentSortor the given one if the current one is unsorted.static PageRequestCreates a newPageRequestwith sort parameters applied.Creates a newPageRequestwithSortapplied.Constructors in org.springframework.data.domain with parameters of type SortModifierConstructorDescriptionprotectedPageRequest(int pageNumber, int pageSize, Sort sort) Creates a newPageRequestwith 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 TypeClassDescriptionclassA dedicatedSortimplementation 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.DirectionRevisionSort.getRevisionDirection(Sort sort) Returns in which direction to sort revisions for the givenSortinstance. -
Uses of Sort in org.springframework.data.querydsl
Subclasses of Sort in org.springframework.data.querydslModifier and TypeClassDescriptionclassSort 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 givenPredicateapplying the givenSort.Returns all entities matching the givenPredicateapplying the givenSort.reactor.core.publisher.Flux<T>QuerydslRepositoryInvokerAdapter.invokeFindAll(Sort sort) QuerydslRepositoryInvokerAdapter.invokeQueryMethod(Method method, org.springframework.util.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 theSortspecification parsed from the source.Methods in org.springframework.data.repository.query.parser with parameters of type SortModifier and TypeMethodDescriptionprotected abstract TActually creates the query object applying the given criteria object andSortdefinition.AbstractQueryCreator.createQuery(Sort dynamicSort) Creates the actual query object applying the givenSortparameter. -
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 aSortas parameter if available (i.e. the equivalent toPagingAndSortingRepository.findAll(Sort)) or the plain equivalent toCrudRepository.findAll(). -
Uses of Sort in org.springframework.data.web
Methods in org.springframework.data.web that return SortModifier and TypeMethodDescriptionprotected SortSortHandlerMethodArgumentResolverSupport.getDefaultFromAnnotationOrFallback(org.springframework.core.MethodParameter parameter) Reads the defaultSortto be used from the givenMethodParameter.SortArgumentResolver.resolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory) Resolves aSortmethod parameter into an argument value from a given request.SortHandlerMethodArgumentResolver.resolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory) ReactiveSortHandlerMethodArgumentResolver.resolveArgumentValue(org.springframework.core.MethodParameter parameter, org.springframework.web.reactive.BindingContext bindingContext, org.springframework.web.server.ServerWebExchange exchange) Methods in org.springframework.data.web with parameters of type SortModifier and TypeMethodDescriptionSortHandlerMethodArgumentResolverSupport.foldIntoExpressions(Sort sort) Folds the givenSortinstance into aListof sort expressions, accumulatingSort.Orderinstances of the same direction into a single expression if they are in order.SortHandlerMethodArgumentResolverSupport.legacyFoldExpressions(Sort sort) Folds the givenSortinstance into two expressions.voidSortHandlerMethodArgumentResolverSupport.setFallbackSort(Sort fallbackSort) Configures theSortto be used as fallback in case noSortDefaultorSortDefault.SortDefaults(the latter only supported in legacy mode) can be found at the method parameter to be resolved.