| org.mmbase.storage.search.SortOrder
All known Subclasses: org.mmbase.storage.search.implementation.BasicSortOrder,
SortOrder | public interface SortOrder (Code) | | A sortorder specifies sorting of a single field.
This corresponds to use of ORDER BY in SQL SELECT-syntax.
author: Rob van Maris version: $Id: SortOrder.java,v 1.5 2007/12/06 08:13:36 michiel Exp $ since: MMBase-1.7 |
ORDER_ASCENDING | int ORDER_ASCENDING(Code) | | Order for ascending sort order.
|
ORDER_DESCENDING | int ORDER_DESCENDING(Code) | | Order for descending sort order.
|
equals | public boolean equals(Object obj)(Code) | | Compares this sortorder to the specified object. The result is
true if and only if the argument is a non-null
SortOrder object associated with the same field, using the same
sort direction.
Parameters: obj - The object to compare with. true if the objects are equal,false otherwise. |
getDirection | int getDirection()(Code) | | Gets the sort direction. This is be either ORDER_ASCENDING or ORDER_DESCENDING.
This corresponds to the use of ASC and DESC in SQL SELECT-syntax.
|
getField | StepField getField()(Code) | | Gets the associated field.
This corresponds to a fieldname in a "ORDER BY" clause in SQL SELECT-syntax.
|
hashCode | public int hashCode()(Code) | | |
isCaseSensitive | boolean isCaseSensitive()(Code) | | Whether sorting must happen case sensitivily. If not, normally something like ordering on the
uppercased field will happen.
since: MMBase-1.8 |
toString | public String toString()(Code) | | Returns a string representation of this SortOrder.
The string representation has the form
"SortOrder(field:<field>, dir:<dir>)"
where
- <field> is the field alias returned by
getField().getAlias()
- <dir> is the direction returned by
SortOrder.getDirection getDirection()
A string representation of this SortOrder. |
|
|