@Override public void exportData(boolean exportWithRaw) throws Exception { // for site no RAW tables export needed writeHeader(); if (exportState.isTerminated()) return; exportTable("TeamLevelDismiss"); if (exportState.isTerminated()) return; exportTable("TeamLevelPoints"); if (exportState.isTerminated()) return; writeFooter(); }
private void exportTable(String tableName) throws Exception { MetaTable table = MetaTablesRegistry.getInstance().getTableByName(tableName); table.setExportWhereAppendix(""); dataExtractor.setCurrentTable(table); if (dataExtractor.hasRecordsToExport()) { if (exportState.isTerminated()) return; writer.write("---" + tableName); writer.newLine(); dataExtractor.exportNewRecords(exportState); } }