Package com.sas.lsaf.query
Class Order
java.lang.Object
com.sas.lsaf.query.Order
- All Implemented Interfaces:
Serializable
The class that represents the sorting method of the queried information by a column.
- Since:
- 2.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOrder()The default constructor.The constructor with the column to sort.The constructor with the column to sort and whether to sort in ascending order.The constructor with the column to sort, whether to sort in ascending order, and whether the sort is case-sensitive. -
Method Summary
Modifier and TypeMethodDescriptionSets the sort order as ascending.static OrderCreates anOrderobject with the specified column sorted in ascending order.static OrderCreates anOrderobject with the specified column sorted in ascending order and indicates whether it is case-sensitive.Sets the sort as case-insensitive.Sets the sort as case-sensitive.Sets the column to sort.Sets the sort order as descending.static Orderdescending(Column column) Creates anOrderobject with the specified column sorted in descending order.static Orderdescending(Column column, boolean caseSensitive) Creates anOrderobject with the specified column sorted in descending order and indicates whether it is case-sensitive.Gets the column to sort.booleanIndicates whether to sort in ascending order.booleanIndicates whether the sort is case-sensitive.booleanIndicates whether to sort in descending order.static OrderCreates anOrderobject with the specified column and indicates whether to sort in ascending order.static OrderCreates anOrderobject with the specified column and indicates whether to sort in ascending order and indicates whether it is case-sensitive.voidsetAscending(boolean ascending) Sets whether to sort in ascending order.voidsetCaseSensitive(boolean caseSensitive) Sets whether the sort is case-sensitive.voidSets the column to sort.toString()
-
Constructor Details
-
Order
public Order()The default constructor. -
Order
The constructor with the column to sort. The default order is descending and case-sensitive.- Parameters:
column- The column to sort.
-
Order
The constructor with the column to sort and whether to sort in ascending order.- Parameters:
column- The column to sort.ascending- Indicates whether to sort in ascending order.
-
Order
The constructor with the column to sort, whether to sort in ascending order, and whether the sort is case-sensitive.- Parameters:
column- The column to sort.ascending- Indicates whether to sort in ascending order.caseSensitive- Indicates whether the sort is case-sensitive.
-
-
Method Details
-
getColumn
Gets the column to sort.- Returns:
- The column to sort.
-
setColumn
Sets the column to sort.- Parameters:
column- The column to sort.
-
setAscending
public void setAscending(boolean ascending) Sets whether to sort in ascending order. The default isfalse.- Parameters:
ascending- Indicates whether to sort in ascending order.
-
isDescending
public boolean isDescending()Indicates whether to sort in descending order. The default istrue.- Returns:
- A
booleanvalue that indicates whether to sort in descending order.
-
isAscending
public boolean isAscending()Indicates whether to sort in ascending order. The default isfalse.- Returns:
- A
booleanvalue that indicates whether to sort in ascending order.
-
isCaseSensitive
public boolean isCaseSensitive()Indicates whether the sort is case-sensitive. The default istrue.- Returns:
- A
booleanvalue that indicates whether the sort is case-sensitive.
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive) Sets whether the sort is case-sensitive. The default istrue.- Parameters:
caseSensitive- Indicates whether the sort is case-sensitive.
-
ascending
Sets the sort order as ascending. If not explicitly set, the default order is descending.- Returns:
- The updated Order object.
-
descending
Sets the sort order as descending. If not explicitly set, the default order is descending.- Returns:
- The updated Order object.
-
caseSensitive
Sets the sort as case-sensitive. If not explicitly set, the default is case-sensitive.- Returns:
- The updated Order object.
-
caseInsensitive
Sets the sort as case-insensitive. If not explicitly set, the default is case-sensitive.- Returns:
- The updated Order object.
-
column
Sets the column to sort.- Returns:
- The updated Order object.
-
toString
-
order
Creates anOrderobject with the specified column and indicates whether to sort in ascending order.- Returns:
- An
Orderobject with the specified column and indicates whether to sort in ascending order.
-
order
Creates anOrderobject with the specified column and indicates whether to sort in ascending order and indicates whether it is case-sensitive.- Returns:
- An
Orderobject with the specified column and indicates whether to sort in ascending order and indicates whether it is case-sensitive.
-
ascending
Creates anOrderobject with the specified column sorted in ascending order.- Returns:
- An
Orderobject with the specified column sorted in ascending order.
-
ascending
Creates anOrderobject with the specified column sorted in ascending order and indicates whether it is case-sensitive.- Returns:
- An
Orderobject with the specified column sorted in ascending order and indicates whether it is case-sensitive.
-
descending
Creates anOrderobject with the specified column sorted in descending order.- Returns:
- An
Orderobject with the specified column sorted in descending order.
-
descending
Creates anOrderobject with the specified column sorted in descending order and indicates whether it is case-sensitive.- Returns:
- An
Orderobject with the specified column sorted in descending order and indicates whether it is case-sensitive.
-