public class Order extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Order.Direction
PropertyPath implements the pairing of an
Order.Direction and a property. |
| Constructor and Description |
|---|
Order(String property,
Order.Direction direction,
String orderExpr) |
| Modifier and Type | Method and Description |
|---|---|
static Order |
create(String property,
String direction) |
static Order |
create(String property,
String direction,
String orderExpr) |
static List<Order> |
formString(String orderSegment) |
static List<Order> |
formString(String orderSegment,
String orderExpr) |
Order.Direction |
getDirection() |
String |
getOrderExpr() |
String |
getProperty() |
static boolean |
isSQLInjection(String str) |
void |
setDirection(Order.Direction direction) |
void |
setOrderExpr(String orderExpr) |
void |
setProperty(String property) |
String |
toString() |
public Order(String property, Order.Direction direction, String orderExpr)
public Order.Direction getDirection()
public String getProperty()
public String getOrderExpr()
public void setDirection(Order.Direction direction)
public void setProperty(String property)
public void setOrderExpr(String orderExpr)
public static boolean isSQLInjection(String str)
public static List<Order> formString(String orderSegment, String orderExpr)
orderSegment - ex: "id.asc,code.desc" or "code.desc"orderExpr - orderExprCopyright © 2018 Pivotal Software, Inc.. All rights reserved.