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(); }
public int clear(String tableName, Condition cnd) { Pojo pojo = pojoMaker.makeDelete(tableName).append(Pojos.Items.cnd(cnd)); _exec(pojo); return pojo.getUpdateCount(); }
public int clear(Class<?> classOfT, Condition cnd) { Pojo pojo = pojoMaker.makeDelete(holder.getEntity(classOfT)).append(Pojos.Items.cnd(cnd)); _exec(pojo); return pojo.getUpdateCount(); }
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(); }
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(); }