public class TestJpqlSortExpressionProvider extends DefaultJpqlSortExpressionProvider
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<MetaPropertyPath> |
toUpperPaths |
NAME
Constructor and Description |
---|
TestJpqlSortExpressionProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addToUpperPath(MetaPropertyPath metaPropertyPath) |
java.lang.String |
getDatatypeSortExpression(MetaPropertyPath metaPropertyPath,
boolean sortDirectionAsc)
Returns JPQL "order by" expression for the specified attribute,
e.g.
|
void |
resetToUpperPaths() |
getLobSortExpression
protected java.util.Set<MetaPropertyPath> toUpperPaths
public java.lang.String getDatatypeSortExpression(MetaPropertyPath metaPropertyPath, boolean sortDirectionAsc)
JpqlSortExpressionProvider
{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
getDatatypeSortExpression
in interface JpqlSortExpressionProvider
getDatatypeSortExpression
in class DefaultJpqlSortExpressionProvider
public void addToUpperPath(MetaPropertyPath metaPropertyPath)
public void resetToUpperPaths()