|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SortOrder
A sortorder specifies sorting of a single field.
This corresponds to use of ORDER BY in SQL SELECT-syntax.
| Field Summary | |
|---|---|
static int |
ORDER_ASCENDING
Order for ascending sort order. |
static int |
ORDER_DESCENDING
Order for descending sort order. |
static String[] |
ORDER_DESCRIPTIONS
Order descriptions corresponding to the order values: ORDER_ASCENDING, and ORDER_DESCENDING |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares this sortorder to the specified object. |
int |
getDirection()
Gets the sort direction. |
StepField |
getField()
Gets the associated field. |
int |
hashCode()
|
boolean |
isCaseSensitive()
Whether sorting must happen case sensitivily. |
void |
setUnmodifiable()
|
String |
toString()
Returns a string representation of this SortOrder. |
| Field Detail |
|---|
static final int ORDER_ASCENDING
static final int ORDER_DESCENDING
static final String[] ORDER_DESCRIPTIONS
ORDER_ASCENDING, and ORDER_DESCENDING
| Method Detail |
|---|
StepField getField()
This corresponds to a fieldname in a "ORDER BY" clause in SQL SELECT-syntax.
int getDirection()
This corresponds to the use of ASC and DESC in SQL SELECT-syntax.
boolean isCaseSensitive()
boolean equals(Object obj)
true if and only if the argument is a non-null
SortOrder object associated with the same field, using the same
sort direction.
equals in class Objectobj - The object to compare with.
true if the objects are equal,
false otherwise.int hashCode()
hashCode in class ObjectString toString()
getField().getAlias()
getDirection()
toString in class Objectvoid setUnmodifiable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||