|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicSortOrder
Basic implementation.
| Field Summary |
| Fields inherited from interface org.mmbase.storage.search.SortOrder |
ORDER_ASCENDING, ORDER_DESCENDING |
| Constructor Summary | |
BasicSortOrder(StepField field)
Constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this sortorder to the specified object. |
int |
getDirection()
Gets the sort direction. |
StepField |
getField()
Gets the associated field. |
int |
hashCode()
|
BasicSortOrder |
setDirection(int direction)
Sets direction. |
java.lang.String |
toString()
Returns a string representation of this SortOrder. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BasicSortOrder(StepField field)
SortOrder.ORDER_ASCENDING.
field - The associated stepfield.
java.lang.IllegalArgumentException - when an invalid argument is supplied.| Method Detail |
public BasicSortOrder setDirection(int direction)
direction - The direction.
BasicSortOrder instance.
java.lang.IllegalArgumentException - when an invalid argument is supplied.public StepField getField()
SortOrderThis corresponds to a fieldname in a "ORDER BY" clause in SQL SELECT-syntax.
getField in interface SortOrderpublic int getDirection()
SortOrderThis corresponds to the use of ASC and DESC in SQL SELECT-syntax.
getDirection in interface SortOrderpublic boolean equals(java.lang.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.
equals in interface SortOrderpublic int hashCode()
hashCode in interface SortOrderpublic java.lang.String toString()
SortOrdergetField().getAlias()
getDirection()
toString in interface SortOrder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||