Examples of insertRecord()


Examples of com.dci.intellij.dbn.editor.data.DatasetEditor.insertRecord()

    }

    public void actionPerformed(AnActionEvent e) {
        DatasetEditor datasetEditor = getDatasetEditor(e);
        if (datasetEditor != null) {
            datasetEditor.insertRecord();
        }
    }

    public void update(AnActionEvent e) {
        Presentation presentation = e.getPresentation();
View Full Code Here

Examples of com.dci.intellij.dbn.editor.data.model.DatasetEditorModel.insertRecord()

        if (editorTable != null && model != null) {
            int[] indexes = editorTable.getSelectedRows();

            int rowIndex = indexes.length > 0 && indexes[0] < model.getSize() ? indexes[0] : 0;
            model.insertRecord(rowIndex);
        }
    }

    public void duplicateRecord() {
        DatasetEditorTable editorTable = getEditorTable();
View Full Code Here

Examples of com.dci.intellij.dbn.editor.data.model.DatasetEditorModel.insertRecord()

                    case 10// enter
                        int index = model.getInsertRowIndex();
                        try {
                            model.postInsertRecord(false, true);
                            if (!model.isInserting()) {
                                model.insertRecord(index + 1);
                            }
                        } catch (SQLException e1) {
                            MessageUtil.showErrorDialog("Could not create row in " + table.getDataset().getQualifiedNameWithType() + ".", e1);
                        }
                        e.consume();
View Full Code Here

Examples of com.frommap.cassandra.dao.EanHotelDetailDao.insertRecord()

              UUID id = (p.getId() == null)? UUIDs.timeBased() : p.getId();
              d.insertPlaces(p, id);
              d.close();
              EanHotelDetailDao ed = new EanHotelDetailDao(_url);
              ean.setPlaceId(id);
              ed.insertRecord(ean);
              ed.close();
              hotel.setHotel(p);
              hotel.setDetail(ean);
              results.add(hotel);
            }
View Full Code Here

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

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("role", "role_code", columnMap);
    } catch (ControllerException ce) {
      System.out.println(ce.getMessage());
      return;
    }
View Full Code Here

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

    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

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

      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

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

     
      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

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

    columnMap.put("updater_person_id", new Integer(3));
   
    try {
      Connection conn = DataSourceHandler.getDataSource().getConnection();
      GenericTransactionController controller = new GenericTransactionController(conn);
      if (controller.insertRecord("title", "title_id", columnMap) == 0) {
        conn.rollback();
      } else {
        conn.commit();
      }
      DbUtils.close(conn);
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.