--- FM2SQL/Attic/Convert.java 2004/08/09 11:36:18 1.71 +++ FM2SQL/Attic/Convert.java 2004/08/16 10:16:27 1.74 @@ -76,7 +76,8 @@ class Convert static boolean batchRun = false; static Vector databases = new Vector(); final static int numHits = 5000; - final static int numIntervalls = 2; + final static int numIntervalls = 4; + static boolean debug = false; public static void main(String args[]) { /* try @@ -101,10 +102,12 @@ class Convert { e1.printStackTrace(); } - PrintStream stream = new PrintStream(file); - // System.setOut(stream); - //System.setErr(stream); - + PrintStream stream = new PrintStream(file,false); + if(!debug) + { + System.setOut(stream); + System.setErr(stream); + } readXMLFile(args[0]); if (!(new File(args[0]).exists())) System.exit(0); @@ -2058,6 +2061,7 @@ class Convert int endIndex = -1; String tempQuery = query; String destQuery = query.replaceAll(names.get(tbIndex).toString(), destTableName); + // TODO remove layout part for destQuery String tempQueryDest = destQuery; // remove extra query parts destQuery.substring(0,destQuery.lastIndexOf(destTableName)+destTableName.length()+1); System.out.println("new Query " + tempQueryDest); @@ -2274,11 +2278,11 @@ class Convert updPst.setNull(l + 1, Types.NULL); } updPst.setString(line.size() + 1, line.get(idIndex).toString()); + //updPst.addBatch(); updPst.execute(); - } } - + //updPst.executeBatch(); } // to method /**