--- dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Lookup.java 2014/05/10 09:26:42 2158 +++ dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Lookup.java 2014/09/11 08:14:40 2200 @@ -20,6 +20,9 @@ static int max_workers; static boolean verbose; + static boolean rename_tables; + static String distributor; + static SafeProperties conf; static Logger logger = Logger.getLogger( Lookup.class.toString() ); @@ -173,6 +176,14 @@ verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") ); logger.info("Starting with VERBOSE:" + verbose); + rename_tables = Boolean.parseBoolean( conf.getSafeProperty("RENAMETABLES") ); + logger.info("Starting with RENAMETABLES:" + rename_tables); + + distributor = conf.getSafeProperty("DISTRIBUTOR"); + distributor = distributor.toUpperCase(); + Constants.init(distributor); + + Database db = new Database(conf); db.resetResultTable(); @@ -191,6 +202,12 @@ lookup.doLookup(); } + if (rename_tables) { + db.renameResultTables(); + } else { + logger.info( "Rename tables is disabled !!!" ); + } + long now = System.currentTimeMillis(); logger.info("Flest Ikke-dækkede, " + flestIkkeDaekkede);