Exemplo n.º 1
0
  public String delete(String id) {

    dbHelper.init();
    dbHelper.delete(id, "drivermessageform");
    dbHelper.close();
    return "success";
  }
Exemplo n.º 2
0
 public DriverMessagePO find(String id) {
   dbHelper.init();
   ArrayList<DriverMessagePO> list = dbHelper.queryByID(id, "drivermessageform");
   driverMessagePO = list.get(0);
   dbHelper.close();
   return driverMessagePO;
 }
Exemplo n.º 3
0
 public String insert(DriverMessagePO driverMessagePO) {
   dbHelper.init();
   list.add(driverMessagePO);
   String result = dbHelper.insert(list, "drivermessageform");
   dbHelper.close();
   return result;
 }
Exemplo n.º 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;
 }