org.onetwo.common.db.parser.JFishConditonImpl Maven / Gradle / Ivy
package org.onetwo.common.db.parser;
import java.util.ArrayList;
import java.util.List;
import org.onetwo.common.db.sqlext.SQLKeys;
import org.onetwo.common.utils.LangUtils;
public class JFishConditonImpl implements SqlCondition {
protected SqlVarObject sqlObject;
protected Object value;
protected int index;
private boolean mutiValue;
private boolean ignore;
// private int endStrIndex;
public T getValue(Class type) {
/*if (SQLKeys.class.isInstance(value)) {
return ((SQLKeys) value).getJavaValue();
}*/
return type.cast(value);
}
@Override
public Object getValue() {
return value;
}
public Object getActualValue() {
if (SQLKeys.class.isInstance(value)) {
return ((SQLKeys) value).getJavaValue();
}
return value;
}
public List> getActualValueAsList() {
if(isMutiValue()){
List> list = getValue(List.class);
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy