package org.theonefx.wcframework.jdbc.easyjsql;
public class WhereEntry {
private String key;
private Object value;
private Class<?> valueType;
private Relation relation = Relation.AND;
private WhereType type = WhereType.equal;
public WhereEntry() {
}
public WhereEntry(String key, Object value) {
this.key = key;
this.value = value;
if (value != null) {
valueType = value.getClass();
}
}
public WhereEntry(String key, Object value, WhereType type) {
this(key, value);
this.type = type;
}
public WhereEntry(String key, Object value, WhereType type, Relation relation) {
this(key, value, type);
this.relation = relation;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
public Relation getRelation() {
return relation;
}
public void setRelation(Relation relation) {
this.relation = relation;
}
public WhereType getType() {
return type;
}
public void setType(WhereType type) {
this.type = type;
}
public Class<?> getValueType() {
return valueType;
}
public void setValueType(Class<?> valueType) {
this.valueType = valueType;
}
}