Пример #1
0
  public String delete(String id) {

    dbHelper.init();
    dbHelper.delete(id, "drivermessageform");
    dbHelper.close();
    return "success";
  }
Пример #2
0
 public DriverMessagePO find(String id) {
   dbHelper.init();
   ArrayList<DriverMessagePO> list = dbHelper.queryByID(id, "drivermessageform");
   driverMessagePO = list.get(0);
   dbHelper.close();
   return driverMessagePO;
 }
Пример #3
0
 public String insert(DriverMessagePO driverMessagePO) {
   dbHelper.init();
   list.add(driverMessagePO);
   String result = dbHelper.insert(list, "drivermessageform");
   dbHelper.close();
   return result;
 }
Пример #4
0
 public String update(IDVO Id) {
   dbHelper.init();
   ArrayList<DriverMessagePO> list = dbHelper.queryByID(Id.id, "drivermessageform");
   list.get(0).setExe(1);
   String result = dbHelper.update(list, "drivermessageform");
   dbHelper.close();
   return result;
 }