Examples of importDatabase()


Examples of com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase()

    // UNREGISTER ALL THE HOOKS
    for (ORecordHook hook : new ArrayList<ORecordHook>(database.getHooks())) {
      database.unregisterHook(hook);
    }

    impor.importDatabase();
    impor.close();

    database.close();
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase()

      database = getProfiledDatabaseInstance(iRequest);
      try {
        parse(iRequest, iResponse, new OHttpMultipartContentBaseParser(), new OHttpMultipartDatabaseImportContentParser(), database);

        ODatabaseImport importer = new ODatabaseImport(getProfiledDatabaseInstance(iRequest), importData, this);
        importer.importDatabase();
        iResponse.send(OHttpUtils.STATUS_OK_CODE, "OK", OHttpUtils.CONTENT_JSON,
            "{\"responseText\": \"Database imported Correctly, see server log for more informations.\"}", null);
      } catch (Exception e) {
        iResponse.send(OHttpUtils.STATUS_INTERNALERROR_CODE, e.getMessage() + ": " + e.getCause() != null ? e.getCause()
            .getMessage() : "", OHttpUtils.CONTENT_JSON, "{\"responseText\": \"" + e.getMessage() + ": "
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase()

      database.unregisterHook(hook);
    }

    dbImport.setPreserveRids(true);
    dbImport.setDeleteRIDMapping(false);
    dbImport.importDatabase();
    dbImport.close();

    database.close();
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase()

      for (ORecordHook hook : new ArrayList<ORecordHook>(importDatabase.getHooks().keySet())) {
        importDatabase.unregisterHook(hook);
      }

      impor.setDeleteRIDMapping(true);
      impor.importDatabase();
      impor.close();

      importDatabase.close();
      final File importDir = new File(EXPORT_DIR);
      importDir.delete();
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase()

    checkNotNull(db);
    checkNotNull(input);

    log.debug("Starting import");
    ODatabaseImport importer = new ODatabaseImport(db, input, new LoggingCommandOutputListener("IMPORT"));
    importer.importDatabase();
    log.debug("Completed import");
  }

  // NOTE: Exposed as public, but not on intf yet until we refine how this is used
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase()

        @Override
        public void onMessage(final String text) {
          log("> {}", text.trim());
        }
      });
      importer.importDatabase();
    }
  }
}
View Full Code Here

Examples of com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase()

       oi.setIncludeManualIndexes(true);
       oi.setUseLineFeedForRecords(true);
       oi.setPreserveClusterIDs(true);
       oi.setPreserveRids(true);
       Logger.info("...starting import procedure...");
       oi.importDatabase();
       oi.close();
     
       Logger.info("...setting up internal user credential...");
       updateDefaultUsers();
       Logger.info("...setting up DataBase attributes...");
View Full Code Here

Examples of org.gephi.desktop.importer.api.ImportControllerUI.importDatabase()

                    menuName = ui.getDisplayName();
                }
                JMenuItem menuItem = new JMenuItem(new AbstractAction(menuName) {

                    public void actionPerformed(ActionEvent e) {
                        importController.importDatabase(dbb.buildImporter());
                    }
                });
                menu.add(menuItem);
            }
        }
View Full Code Here

Examples of org.gephi.desktop.importer.api.ImportControllerUI.importDatabase()

                }
                JMenuItem menuItem = new JMenuItem(new AbstractAction(menuName) {

                    @Override
                    public void actionPerformed(ActionEvent e) {
                        importController.importDatabase(dbb.buildImporter());
                    }
                });
                menu.add(menuItem);
            }
        }
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.