code: public static void deleteQueueMapping(DbConn cnx, int id)
      {
          QueryResult qr = cnx.runUpdate("dp_delete_by_id", id);
          if (qr.nbUpdated != 1)
          {
              cnx.setRollbackOnly();
              throw new JqmAdminApiUserException("no item with ID " + id);
          }
      }
docs: /////////////////////////////////////////////////////////////////////////