public class Order extends Object
Order ota = new Order("title"); // order by title ascendingOrder otd = new Order("title", false); // order by title descending| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Order(String property)
a simple order for a property which is ascending
|
Order(String property,
boolean ascending)
define an order for a property
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public String property
public boolean ascending
public Order(String property)
property - the name of the field (property) in the persisted objectpublic 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 descendingpublic String getProperty()
public void setProperty(String property)
public boolean isAscending()
public void setAscending(boolean ascending)
Copyright © 2003–2022 Sakai Project. All rights reserved.