예제 #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;
 }