public class DefaultFieldSort extends Object implements FieldSort, Serializable
| 构造器和说明 |
|---|
DefaultFieldSort(String field) |
DefaultFieldSort(String field,
Direction direction) |
| 限定符和类型 | 方法和说明 |
|---|---|
static DefaultFieldSort |
create(String field,
String direction) |
static List<DefaultFieldSort> |
fromString(String orderSegment)
将sql片段转化成排序对象。
|
Direction |
getDirection() |
String |
getField() |
static boolean |
isSQLInjection(String str) |
void |
setDirection(Direction direction) |
void |
setField(String field) |
String |
toString() |
public DefaultFieldSort(String field)
public static boolean isSQLInjection(String str)
public static List<DefaultFieldSort> fromString(String orderSegment)
orderSegment - ex: "id asc,code description"public static DefaultFieldSort create(String field, String direction)
field - direction - public Direction getDirection()
getDirection 在接口中 FieldSortpublic void setDirection(Direction direction)
public void setField(String field)
Copyright © 2018. All rights reserved.