Package nz.co.transparent.client.controller

Examples of nz.co.transparent.client.controller.GenericController


  }

  public void updateRecord() {
   
    try {
      GenericController controller = GenericController.getInstance();
//      Map columnMap = nz.co.transparent.client.controller.findWhere("title", "title_code='A'");
//      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


  }

  public void deleteRecord() {
   
    try {
      GenericController controller = GenericController.getInstance();
      controller.deleteRecord("role", "rol_code='A'");
    } catch (ControllerException ce) {
      System.out.println(ce.getMessage());
      return;
    }
View Full Code Here

TOP

Related Classes of nz.co.transparent.client.controller.GenericController

Copyright © 2018 www.massapicom. 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.