|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.entitybroker.entityprovider.search.Order
public class Order
A simple bean which defines the order to return the results of a search
Example usage:
Order ota = new Order("title"); // order by title ascending
Order otd = new Order("title", false); // order by title descending
| Field Summary | |
|---|---|
boolean |
ascending
if true then the return order is ascending, if false then return order is descending |
String |
property
the name of the field (property) in the persisted object |
| Constructor Summary | |
|---|---|
Order(String property)
a simple order for a property which is ascending |
|
Order(String property,
boolean ascending)
define an order for a property |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getProperty()
the name of the field (property) in the persisted object |
int |
hashCode()
|
boolean |
isAscending()
if true then the return order is ascending, if false then return order is descending |
void |
setAscending(boolean ascending)
|
void |
setProperty(String property)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String property
public boolean ascending
| Constructor Detail |
|---|
public Order(String property)
property - the name of the field (property) in the persisted object
public Order(String property,
boolean ascending)
property - the name of the field (property) in the persisted objectascending - if true then the return order is ascending,
if false then return order is descending| Method Detail |
|---|
public String getProperty()
public void setProperty(String property)
public boolean isAscending()
public void setAscending(boolean ascending)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||