Esempio n. 1
0
 public int delete(Class<?> classOfT, long id) {
   Entity<?> en = holder.getEntity(classOfT);
   Pojo pojo = pojoMaker.makeDelete(en).append(Pojos.Items.cndId(en, id));
   pojo.addParamsBy(id);
   _exec(pojo);
   return pojo.getUpdateCount();
 }
Esempio n. 2
0
 public int clear(String tableName, Condition cnd) {
   Pojo pojo = pojoMaker.makeDelete(tableName).append(Pojos.Items.cnd(cnd));
   _exec(pojo);
   return pojo.getUpdateCount();
 }
Esempio n. 3
0
 public int clear(Class<?> classOfT, Condition cnd) {
   Pojo pojo = pojoMaker.makeDelete(holder.getEntity(classOfT)).append(Pojos.Items.cnd(cnd));
   _exec(pojo);
   return pojo.getUpdateCount();
 }
Esempio n. 4
0
 public <T> int deletex(Class<T> classOfT, Object... pks) {
   Entity<T> en = holder.getEntity(classOfT);
   Pojo pojo = pojoMaker.makeDelete(en).append(Pojos.Items.cndPk(en, pks));
   _exec(pojo);
   return pojo.getUpdateCount();
 }
Esempio n. 5
0
 public int delete(Class<?> classOfT, String name) {
   Entity<?> en = holder.getEntity(classOfT);
   Pojo pojo = pojoMaker.makeDelete(en).append(Pojos.Items.cndName(en, name)).addParamsBy(name);
   _exec(pojo);
   return pojo.getUpdateCount();
 }