Package nz.co.transparent.client.controller

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


    columnMap.put("date_updated", null);
    columnMap.put("updater_person_id", new Integer(3));
   
    try {
      GenericController controller = GenericController.getInstance();
      controller.insertRecord("title", "title_id", columnMap);
    } catch (ControllerException ce) {
      System.out.println(ce.getMessage());
      return;
    }
View Full Code Here


    columnMap.put("date_updated", null);
    columnMap.put("updater_person_id", new Integer(3));
   
    try {
      GenericController controller = GenericController.getInstance();
      controller.insertRecord("role", "role_code", columnMap);
    } catch (ControllerException ce) {
      System.out.println(ce.getMessage());
      return;
    }
View Full Code Here

    clientMap.put("insurance_company_id", new Integer(1));
    clientMap.put("updater_person_id", new Integer(1));
   
    try {
      GenericController controller = GenericController.getInstance();
      controller.insertRecord("client", "client_id", clientMap);
     
      Integer clientID = (Integer) clientMap.get("client_id");
      contactDetailMap.put("contact_detail_id", null);
      contactDetailMap.put("client_id", clientID);
      contactDetailMap.put("contact_type_id", new Integer(1));
View Full Code Here

      Integer clientID = (Integer) clientMap.get("client_id");
      contactDetailMap.put("contact_detail_id", null);
      contactDetailMap.put("client_id", clientID);
      contactDetailMap.put("contact_type_id", new Integer(1));
      contactDetailMap.put("contact_detail", "contact 1");
      controller.insertRecord("contact_detail", "contact_detail_id", contactDetailMap);
     
      contactDetailMap.put("contact_detail_id", null);
      contactDetailMap.put("client_id", clientID);
      contactDetailMap.put("contact_type_id", new Integer(2));
      contactDetailMap.put("contact_detail", "contact 2");
View Full Code Here

     
      contactDetailMap.put("contact_detail_id", null);
      contactDetailMap.put("client_id", clientID);
      contactDetailMap.put("contact_type_id", new Integer(2));
      contactDetailMap.put("contact_detail", "contact 2");
      controller.insertRecord("contact_detail", "contact_detail_id", contactDetailMap);

      // cascade delete
      String[] childTables = {"contact_detail", "payment"};
      //nz.co.transparent.client.controller.insertMultipleRecord("client", "client_id", clientID, childTables);
    } catch (ControllerException ce) {
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.