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 Details

    • supports

      boolean supports(MetaPropertyPath metaPropertyPath)
      Returns:
      true if 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