79808182838485868788
int rs = (Integer) JdbcUtil.update(con, sqls[0]); ids[i] = rs; } } } catch (Exception e) { throw new DAOException("", e); } return ids; }
101102103104105106107108109110
con = ds.getConnection(); String[] sqls = SqlFactory.getDeleteSql(new Object[] { t }) .delete(fields); id = JdbcUtil.update(con, sqls[0]); } catch (Exception e) { throw new DAOException("", e); } } return id; }
120121122123124125126127128129
String[] sqls = SqlFactory.getDeleteSql( new Object[] { clazz.newInstance() }).delete(fields, values); id = JdbcUtil.update(con, sqls[0]); } catch (Exception e) { throw new DAOException("", e); } } return id; }
32333435363738394041
new Object[] { ts[i] }).update(); ids[i] = JdbcUtil.update(con, sqls[i]); // 更新缓存 } } catch (Exception e) { throw new DAOException("batchUpdate exception ", e); } } return ids; }
77787980818283848586
String[] sqls = SqlFactory.getUpdateSql(ts).update(fields); ids[i] = JdbcUtil.update(con, sqls[i]); // 更新缓存 } } catch (Exception e) { throw new DAOException("updateByFields exception ", e); } } return ids; }
145146147148149150151152153154
new Object[] { clazz.newInstance() }).deleteWhere( condition); id = JdbcUtil.updateWithArgs(con, sql, args); // 缓存 } catch (Exception e) { throw new DAOException("", e); } } return id; }
9899100101102103104105106107
values); ids[i] = JdbcUtil.update(con, sqls[i]); // 更新缓存 } } catch (Exception e) { throw new DAOException("updateByFieldIsValue exception ", e); } } return ids; }
117118119120121122123124125126
Connection con = null; try { con = ds.getConnection(); result = JdbcUtil.update(con, sqls); } catch (Exception e) { throw new DAOException("updateBySQL exception ", e); } return result; }
131132133134135136137138139140
Connection con = null; try { con = ds.getConnection(); result = JdbcUtil.updateWithArgs(con, sqls, args); } catch (Exception e) { throw new DAOException("updateBySQLWithArgs exception ", e); } return result; }
30313233343536373839
con = ds.getConnection(); String sql = SqlFactory.getSelectSql(clazz.newInstance(), dbType).selectAll(orderField, orderType); list = JdbcUtil.getList(con, clazz, sql); } catch (Exception e) { throw new DAOException("", e); } } return list; }