Package io.jmix.data.persistence
Interface SortPathExpressionProvider
- All Known Implementing Classes:
DynModelSortPathExpressionProvider
@NullMarked
public interface SortPathExpressionProvider
Extension point for modules that provide custom JPQL sort expressions for resolved property paths.
Returned expressions may use the {E} placeholder for the root entity alias.
-
Method Summary
Modifier and TypeMethodDescriptiongetSortExpressions(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) booleansupports(MetaPropertyPath metaPropertyPath)
-
Method Details
-
supports
- Returns:
trueif the property path should be sorted by this provider
-
getSortExpressions
Map<String,Sort.Direction> getSortExpressions(MetaPropertyPath metaPropertyPath, Sort.Direction sortDirection) - Returns:
- sort expressions mapped to their directions, in the exact order they must appear in
order by
-