|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.services.fieldquery.MCRSortBy
public class MCRSortBy
Represents a single sort criteria for sorting query results. Each MCRSortBy defines one field to sort by, and the order (ascending or descending).
| Field Summary | |
|---|---|
static boolean |
ASCENDING
Sort this field in ascending order |
static boolean |
DESCENDING
Sort this field in descending order |
| Constructor Summary | |
|---|---|
MCRSortBy(MCRFieldDef field,
boolean order)
Creates a new sort criteria |
|
| Method Summary | |
|---|---|
MCRFieldDef |
getField()
Returns the field to sort by |
boolean |
getSortOrder()
Returns the sort order for this field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean ASCENDING
public static final boolean DESCENDING
| Constructor Detail |
|---|
public MCRSortBy(MCRFieldDef field,
boolean order)
field - the field to sort byorder - the sort order (ascending or descending)ASCENDING,
DESCENDING| Method Detail |
|---|
public MCRFieldDef getField()
public boolean getSortOrder()
ASCENDING,
DESCENDING
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||