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.
@FunctionalInterface public interface SortTransformer
Transforms a request for aSort
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:
FilterAndSortAlias
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
-
-
-
Method Detail
-
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
-
-