Interface SortTransformer
- All Known Implementing Classes:
FilterAndSortAliasSortTransformer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Transforms a request for a
Sort
that could be against a business domain to the actual
sort relevant to the Spring Data repository domain class- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
-
Method Summary
-
Method Details
-
transform
org.springframework.data.domain.Sort transform(org.springframework.data.domain.Sort sort, Class<?> repositoryDomain) Transforms the original sort into a new sort, usually as one relevant for the given repositoryDomain- Parameters:
sort
- the original sort requestrepositoryDomain
- the repository domain class- Returns:
- a transformed sort, or the original sort to do nothing
-