public class CustomCondition extends Object implements SearchFilter
查询过滤条件
author: hyssop
Date: 16-1-15 上午7:12
Version: 1.0
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCustomCondition(RelationEnum value,
List<CustomCondition> others) |
boolean |
equals(Object o) |
List<CustomCondition> |
getAndFilters() |
String |
getEntityProperty()
得到实体属性名
|
String |
getKey() |
SearchOperator |
getOperator()
获取 操作符
|
String |
getOperatorStr()
获取自定义查询使用的操作符
1、首先获取前台传的
2、返回空
|
List<CustomCondition> |
getOrFilters() |
String |
getSearchProperty() |
Object |
getValue() |
boolean |
hasAndFilters() |
int |
hashCode() |
boolean |
hasOrFilters() |
boolean |
isUnaryFilter()
是否是一元过滤 如is null is not null
|
void |
setOperator(SearchOperator operator) |
void |
setSearchProperty(String searchProperty) |
void |
setValue(Object value) |
String |
toString() |
public void addCustomCondition(RelationEnum value, List<CustomCondition> others)
public List<CustomCondition> getAndFilters()
public List<CustomCondition> getOrFilters()
public boolean hasAndFilters()
public boolean hasOrFilters()
public String getKey()
public String getSearchProperty()
public SearchOperator getOperator() throws InvlidSearchOperatorException
public String getOperatorStr()
public Object getValue()
public void setValue(Object value)
public void setOperator(SearchOperator operator)
public void setSearchProperty(String searchProperty)
public String getEntityProperty()
public boolean isUnaryFilter()
Copyright © 2018. All rights reserved.