Esempio n. 1
0
 public int func(String tableName, String funcName, String colName, Condition cnd) {
   DaoStatement pojo =
       pojoMaker
           .makeFunc(tableName, funcName, colName)
           .append(Pojos.Items.cnd(cnd))
           .setAfter(_pojo_fetchInt);
   _exec(pojo);
   return pojo.getInt();
 }
Esempio n. 2
0
 public int func(Class<?> classOfT, String funcName, 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(), funcName, colName)
           .append(Pojos.Items.cnd(cnd))
           .setAfter(_pojo_fetchInt)
           .setEntity(en);
   _exec(pojo);
   return pojo.getInt();
 }