Exemple #1
0
 public void updateInfoById(String table, int id, Info info) throws Exception {
   jdbcTemplate.update(
       "UPDATE "
           + table
           + " SET "
           + info.getUpdateKeys()
           + " WHERE "
           + BaseColumn.KEY_SPIDER_ID
           + "="
           + id,
       info.getUpdateParams());
 }
Exemple #2
0
 public void saveInfo(String table, Info info) throws Exception {
   jdbcTemplate.update(
       "INSERT INTO " + table + "(" + info.getKeys() + ") values(" + info.getQuestions() + ")",
       info.getParams());
 }