Package org.mycore.services.fieldquery
Class MCRSortBy
java.lang.Object
org.mycore.services.fieldquery.MCRSortBy
Represents a single sort criteria for sorting query results.
Each MCRSortBy defines one field to sort by, and the order
(ascending or descending).
- Author:
- Frank Lützenkirchen
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Sort this field in ascending orderstatic final boolean
Sort this field in descending order -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the sort order for this field.
-
Field Details
-
ASCENDING
public static final boolean ASCENDINGSort this field in ascending order- See Also:
-
DESCENDING
public static final boolean DESCENDINGSort this field in descending order- See Also:
-
-
Constructor Details
-
MCRSortBy
Creates a new sort criteria- Parameters:
fieldName
- the field to sort byorder
- the sort order (ascending or descending)- See Also:
-
-
Method Details
-
getFieldName
-
getSortOrder
public boolean getSortOrder()Returns the sort order for this field.- Returns:
- true when order is
ASCENDING
or false whenorder isDESCENDING
- See Also:
-