Package io.jmix.data.persistence
Interface JpqlSortExpressionProvider
- All Known Implementing Classes:
DefaultJpqlSortExpressionProvider
public interface JpqlSortExpressionProvider
Interface to be implemented by a Spring bean to generate sort expression for datatype and LOB properties.
You can provide your own implementation bean and use custom sort logic, e.g. use functions.
-
Method Summary
Modifier and TypeMethodDescriptiongetDatatypeSortExpression(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc) Returns JPQL order expression for specified property, e.g.getLobSortExpression(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc) Returns JPQL order expression for specified lob property.
-
Method Details
-
getDatatypeSortExpression
Returns JPQL order expression for specified property, e.g.{E}.property, where{E}is a selected entity alias. It's possible to:- Apply JPQL functions for property, e.g
upper({E}.property) - Use
asc/descornulls last/nulls first, e.g.{E}.property asc nulls first
- Apply JPQL functions for property, e.g
-
getLobSortExpression
Returns JPQL order expression for specified lob property.
-