Package io.jmix.data.impl
Class DefaultJpqlSortExpressionProvider
java.lang.Object
io.jmix.data.impl.DefaultJpqlSortExpressionProvider
- All Implemented Interfaces:
JpqlSortExpressionProvider
@Component("data_JpqlSortExpressionProvider")
public class DefaultJpqlSortExpressionProvider
extends Object
implements JpqlSortExpressionProvider
-
Constructor Summary
-
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.
-
Constructor Details
-
DefaultJpqlSortExpressionProvider
public DefaultJpqlSortExpressionProvider()
-
-
Method Details
-
getDatatypeSortExpression
public String getDatatypeSortExpression(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc) Description copied from interface:JpqlSortExpressionProvider
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/desc
ornulls last/nulls first
, e.g.{E}.property asc nulls first
- Specified by:
getDatatypeSortExpression
in interfaceJpqlSortExpressionProvider
- Apply JPQL functions for property, e.g
-
getLobSortExpression
Description copied from interface:JpqlSortExpressionProvider
Returns JPQL order expression for specified lob property.- Specified by:
getLobSortExpression
in interfaceJpqlSortExpressionProvider
-