private Object getValue(String getter, T pojo) { String thePropertyName; int index = getter.indexOf("."); if (index != -1) { thePropertyName = getter.substring(0, index); } else { thePropertyName = getter; } Object value; try { if (beanspector != null) { value = beanspector.swap(pojo).getValue(thePropertyName.toLowerCase()); } else { value = ((SearchBean)pojo).get(getter); } return getPrimitiveValue(getter, value); } catch (Throwable e) { return null; } }
? get2val.get(getter) : ((SearchBean)condition).get(getter); if (rval == null) { continue;
? get2val.get(getter) : ((SearchBean)condition).get(getter); if (rval == null) { continue;
private Object getValue(String getter, T pojo) { String thePropertyName; int index = getter.indexOf("."); if (index != -1) { thePropertyName = getter.substring(0, index); } else { thePropertyName = getter; } Object value; try { if (beanspector != null) { value = beanspector.swap(pojo).getValue(thePropertyName.toLowerCase()); } else { value = ((SearchBean)pojo).get(getter); } return getPrimitiveValue(getter, value); } catch (Throwable e) { return null; } }
? get2val.get(getter) : ((SearchBean)condition).get(getter); if (rval == null) { continue;
private Object getValue(String getter, T pojo) { String thePropertyName; int index = getter.indexOf("."); if (index != -1) { thePropertyName = getter.substring(0, index); } else { thePropertyName = getter; } Object value; try { if (beanspector != null) { value = beanspector.swap(pojo).getValue(thePropertyName.toLowerCase()); } else { value = ((SearchBean)pojo).get(getter); } return getPrimitiveValue(getter, value); } catch (Throwable e) { return null; } }
String value = sc.getCondition().get(property).replace("%252C", ",").replace("%253B", ";"); clause.setValue(value);