Exemple #1
0
 @Override
 public void update(Care care) throws Exception {
   // TODO Auto-generated method stub
   Object[] params = care.toArray();
   params = ArrayUtils.remove(params, 2);
   params = ArrayUtils.add(params, care.getId());
   update(
       "update care set theme=?, object=?, next=?, way=?, people=?, note=? where id = ?", params);
 }
Exemple #2
0
 @Override
 public void save(Care care) throws Exception {
   // TODO Auto-generated method stub
   update("insert into care values(null,?,?,?,?,?,?,?)", care.toArray());
 }