Package com.emc.documentum.rest.sort
Class SortOrder
java.lang.Object
com.emc.documentum.rest.sort.SortOrder
The definition for an ordered attribute in the order specification
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructor with parameter attribute.Constructor with parameters attribute and ascending.Constructor with parameters attribute and ascending. -
Method Summary
Modifier and TypeMethodDescriptionReturn the attribute in the sort orderboolean
Return if the attribute sort is ascendingboolean
Return if the attribute sort is forced to case insensitive mode
-
Constructor Details
-
SortOrder
Constructor with parameter attribute. The sort order is ascending.- Parameters:
attribute
- the object attribute
-
SortOrder
Constructor with parameters attribute and ascending.- Parameters:
attribute
- the object attributeisAscending
- indicate whether to sort in ascending sequence by this attribute; true indicates ascending and false indicates descending.
-
SortOrder
Constructor with parameters attribute and ascending.- Parameters:
attribute
- the object attributeisAscending
- indicate whether to sort in ascending sequence by this attribute; true indicates ascending and false indicates descending.forceCaseIns
- indicate whether to force sorting by case insensitive mode; true indicates to force case insensitive and false indicates to the DB default capability.
-
-
Method Details
-
isAscending
public boolean isAscending()Return if the attribute sort is ascending- Returns:
- true if the sort is ascending; false for otherwise.
-
getAttribute
Return the attribute in the sort order- Returns:
- the attribute for the sort.
-
isForceCaseInsensitive
public boolean isForceCaseInsensitive()Return if the attribute sort is forced to case insensitive mode- Returns:
- true if the sort is forced to be case insensitive; false for otherwise.
-