public void run() { setRunning(true); this.logInfo(International.getString("Importiere Datensätze ...")); if (isXmlFile(filename)) { runXmlImport(); } else { runCsvImport(); } this.logInfo( "\n\n" + International.getMessage("{count} Datensätze erfolgreich importiert.", importCount)); this.logInfo("\n" + International.getMessage("{count} Fehler.", errorCount)); this.logInfo("\n" + International.getMessage("{count} Warnungen.", warningCount)); // Start the Audit in the background to find any eventual inconsistencies (new Audit(Daten.project)).start(); setDone(); }
private void logImportFailed(DataRecord r, String msg, Exception e) { if (e != null) { Logger.logdebug(e); } logInfo( "\nERROR: " + LogString.operationFailed( International.getMessage("Import von Datensatz {record}", r.toString()), msg)); errorCount++; }
public String getSuccessfullyDoneMessage() { return International.getMessage("{count} Datensätze erfolgreich importiert.", importCount); }