public interface JpqlSortExpressionProvider
Override the bean to provide custom sort logic, e.g. to use JPQL functions.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDatatypeSortExpression(MetaPropertyPath metaPropertyPath,
boolean sortDirectionAsc)
Returns JPQL "order by" expression for the specified attribute,
e.g.
|
java.lang.String |
getLobSortExpression(MetaPropertyPath metaPropertyPath,
boolean sortDirectionAsc)
Returns JPQL "order by" expression for the specified LOB attribute.
|
static final java.lang.String NAME
java.lang.String getDatatypeSortExpression(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc)
{E}.property
, where {E}
is a placeholder for entity alias.
It's possible to:
upper({E}.property)
asc/desc
or nulls last/nulls first
,
e.g. {E}.property asc nulls first
java.lang.String getLobSortExpression(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc)