|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicSortOrder
public class BasicSortOrder
Basic implementation.
| Field Summary | |
|---|---|
protected boolean |
modifiable
|
| Fields inherited from interface org.mmbase.storage.search.SortOrder |
|---|
ORDER_ASCENDING, ORDER_DESCENDING, ORDER_DESCRIPTIONS |
| Constructor Summary | |
|---|---|
BasicSortOrder(StepField field)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean modifiable
| Constructor Detail |
|---|
public BasicSortOrder(StepField field)
SortOrder.ORDER_ASCENDING.
field - The associated stepfield.
IllegalArgumentException - when an invalid argument is supplied.| Method Detail |
|---|
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.
getField in interface SortOrderpublic int getDirection()
SortOrderThis corresponds to the use of ASC and DESC in SQL SELECT-syntax.
getDirection in interface SortOrderpublic String getDirectionDescription()
public boolean isCaseSensitive()
SortOrder
isCaseSensitive 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.
equals in interface SortOrderequals in class Objectobj - The object to compare with.
true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface SortOrderhashCode in class Objectpublic String toString()
SortOrdergetField().getAlias()
getDirection()
toString in interface SortOrdertoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||