java.lang.Object
org.springframework.data.keyvalue.core.SpelSortAccessor
- All Implemented Interfaces:
SortAccessor<Comparator<?>>
SortAccessor implementation capable of creating SpelPropertyComparator.- Author:
- Christoph Strobl, Oliver Gierke, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionSpelSortAccessor(SpelExpressionParser parser) Creates a newSpelSortAccessorgivenSpelExpressionParser. -
Method Summary
Modifier and TypeMethodDescriptionComparator<?>resolve(KeyValueQuery<?> query) ReadsKeyValueQuery.getSort()of givenKeyValueQueryand applies required transformation to match the desired type.
-
Constructor Details
-
SpelSortAccessor
Creates a newSpelSortAccessorgivenSpelExpressionParser.- Parameters:
parser- must not be null.
-
-
Method Details
-
resolve
Description copied from interface:SortAccessorReadsKeyValueQuery.getSort()of givenKeyValueQueryand applies required transformation to match the desired type.- Specified by:
resolvein interfaceSortAccessor<Comparator<?>>- Parameters:
query- must not be null.- Returns:
- null in case
Sorthas not been defined onKeyValueQuery.
-