Package nz.co.transparent.client.controller

Examples of nz.co.transparent.client.controller.GenericController.updateRecord()


    GenericController genericController = GenericController.getInstance();
   
    try {
      Map parameterMap = genericController.findWhere("parameter", "parameter_key='" + parameterKey + "'");
      parameterMap.put("parameter", parameterValue);
      genericController.updateRecord("parameter", "parameter_id", parameterMap);
      return true;
    } catch (FinderException fe) {
      return false;
    } catch (UpdaterException ue) {
      return false;
View Full Code Here


//      columnMap.put("title", "Title changed 111");
//      nz.co.transparent.client.controller.updateRecord("title", "title_id", columnMap);
      Map columnMap = controller.findWhere("client", "client_id=5");
      //columnMap.put("client_id", new String("5")); // wil not work, must be Integer
      columnMap.put("first_name", "first_name 5");
      controller.updateRecord("client", "client_id", columnMap);
    } catch (FinderException ce) {
      System.out.println("FinderException: " + ce.getMessage());
      return;
    } catch (UpdaterException ce) {
      System.out.println("UpdaterException: " + ce.getMessage());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.