public class Factor4Query {
/**
* 等于
*/
public final static int EQUAL=1;//
/**
* 小于
*/
public final static int LESS=2;
/**
* 小于等于
*/
public final static int LESS_EQUAL=21;
/**
* 大于
*/
public final static int MORE=3;
/**
* 大于等于
*/
public final static int MORE_EQUAL=31;
/**
* 区间 between and
*/
public final static int BETW=4;
/**
* 集合 TODO
*/
public final static int SET=5;
/**
* 不等于
*/
public final static int UNEQUAL=6;
/**
* 不在区间
*/
public final static int NOTBETW=7;
/**
* 不在集合中 TODO
*/
public final static int NOTINSET=8;
/**
* like
*/
public final static int LIKE=9;
/**
*排序 1:升序,2:降序 TODO
*/
public final static int ORDER=10;
/**
* 查询对象属性名
*/
String field;
/**
* 运算符
*/
Integer opt;
/**
* 是否允许空值查询 is NULL
*/
Boolean allowNullQuery=false;
/**
* 值对象
*/
Object value;
Object maxValue;
Object minValue;
List values;
public Factor4Query(){}
public Factor4Query(String field, Integer opt, Object value) {
super();
this.field = field;
this.opt = opt;
this.value = value;
}
public Factor4Query(String field, Integer opt, Boolean allowNullQuery,
Object value) {
super();
this.field = field;
this.opt = opt;
this.allowNullQuery = allowNullQuery;
this.value = value;
}
public Factor4Query(String field, Integer opt, Boolean allowNullQuery,
Object maxValue, Object minValue) {
super();
this.field = field;
this.opt = opt;
this.allowNullQuery = allowNullQuery;
this.maxValue = maxValue;
this.minValue = minValue;
}
public String getField() {
return field;
}
public void setField(String field) {
this.field = field;
}
public Integer getOpt() {
return opt;
}
public void setOpt(Integer opt) {
this.opt = opt;
}
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
public Object getMaxValue() {
return maxValue;
}
public void setMaxValue(Object maxValue) {
this.maxValue = maxValue;
}
public Object getMinValue() {
return minValue;
}
public void setMinValue(Object minValue) {
this.minValue = minValue;
}
public List getValues() {
return values;
}
public void setValues(List values) {
this.values = values;
}
public Boolean getAllowNullQuery() {
return allowNullQuery;
}
public void setAllowNullQuery(Boolean allowNullQuery) {
this.allowNullQuery = allowNullQuery;
}
}