public class BasicSortOrder extends Object implements SortOrder, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
modifiable |
ORDER_ASCENDING, ORDER_DESCENDING, ORDER_DESCRIPTIONS| Constructor and Description |
|---|
BasicSortOrder(StepField field)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this sortorder to the specified object.
|
int |
getDirection()
Gets the sort direction.
|
String |
getDirectionDescription()
Returns a description of the direction of the sort order
|
StepField |
getField()
Gets the associated field.
|
int |
hashCode() |
boolean |
isCaseSensitive()
Whether sorting must happen case sensitivily.
|
BasicSortOrder |
setCaseSensitive(boolean c) |
BasicSortOrder |
setDirection(int direction)
Sets direction.
|
void |
setUnmodifiable() |
String |
toString()
Returns a string representation of this SortOrder.
|
public BasicSortOrder(StepField field)
SortOrder.ORDER_ASCENDING.field - The associated stepfield.IllegalArgumentException - when an invalid argument is supplied.public void setUnmodifiable()
setUnmodifiable in interface SortOrderpublic BasicSortOrder setDirection(int direction)
direction - The direction.BasicSortOrder instance.IllegalArgumentException - when an invalid argument is supplied.public StepField getField()
SortOrderThis corresponds to a fieldname in a "ORDER BY" clause in SQL SELECT-syntax.
public int getDirection()
SortOrderThis corresponds to the use of ASC and DESC in SQL SELECT-syntax.
getDirection in interface SortOrderpublic String getDirectionDescription()
public boolean isCaseSensitive()
SortOrderisCaseSensitive in interface SortOrderpublic BasicSortOrder setCaseSensitive(boolean c)
public boolean equals(Object obj)
SortOrdertrue if and only if the argument is a non-null
SortOrder object associated with the same field, using the same
sort direction.public int hashCode()
public String toString()
SortOrdergetField().getAlias()
getDirection()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}