public Object func2(String tableName, String func2Name, String colName, Condition cnd) { DaoStatement pojo = pojoMaker .makeFunc(tableName, func2Name, colName) .append(Pojos.Items.cnd(cnd)) .setAfter(_pojo_fetchObject); _exec(pojo); return pojo.getResult(); }
public Object func2(Class<?> classOfT, String func2Name, String colName, Condition cnd) { Entity<?> en = holder.getEntity(classOfT); if (null != en.getField(colName)) colName = en.getField(colName).getColumnName(); DaoStatement pojo = pojoMaker .makeFunc(en.getViewName(), func2Name, colName) .append(Pojos.Items.cnd(cnd)) .setAfter(_pojo_fetchObject) .setEntity(en); _exec(pojo); return pojo.getResult(); }