Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 @Override
 public void save(Care care) throws Exception {
   // TODO Auto-generated method stub
   update("insert into care values(null,?,?,?,?,?,?,?)", care.toArray());
 }