public class SortField
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SortField(EntityField entityField,
boolean asc)
Creates a new sort field.
|
SortField(java.lang.String fieldName,
boolean asc)
Deprecated.
As of Judson (7.1.x), replaced by
SortField(EntityField, boolean) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFieldName()
Deprecated.
As of Judson (7.1.x), replaced by
getSortableFieldName(java.util.Locale) |
java.lang.String |
getSortableFieldName(java.util.Locale locale)
Returns the name of the field.
|
boolean |
isAscending()
Returns if the sort field is ascending or not.
|
public SortField(EntityField entityField, boolean asc)
entityField
- - the entity fieldasc
- - if the sort should be ascending@Deprecated public SortField(java.lang.String fieldName, boolean asc)
SortField(EntityField, boolean)
@Deprecated public java.lang.String getFieldName()
getSortableFieldName(java.util.Locale)
public java.lang.String getSortableFieldName(java.util.Locale locale)
locale
- - the localepublic boolean isAscending()