--- FM2SQL/Attic/Convert.java 2004/02/16 12:24:17 1.34 +++ FM2SQL/Attic/Convert.java 2004/02/19 11:05:41 1.37 @@ -297,7 +297,7 @@ class Convert // System.exit(0); if (dialog != null) - dialog.title.setText("Writing table data ..."); + dialog.title.setText("Updating table data ..."); int j = -1; @@ -432,8 +432,6 @@ class Convert String query = null; try { - //bean.setConnection("jdbc:fmpro:http://141.14.237.74:8050"); - //bean.setConnection("jdbc:postgresql://erebos/test","postgres","rogo"); if(source!=null) bean.setConnection(source); else @@ -476,7 +474,6 @@ class Convert //result = bean.getQueryData(query, dialog, 0); bean.getConnection(); bean.makeQuery(query, 50); - // @TODO id Vector must be used in querys while loop over id ranges where id>=start and id<=end idField = ids.get(tbIndex).toString(); } catch (Exception e) @@ -484,7 +481,6 @@ class Convert System.out.println(e); continue; } - //beanDest.setConnection("jdbc:postgresql://erebos/test3"); if(destination!=null) beanDest.setConnection(destination); else @@ -604,7 +600,7 @@ class Convert if (query.indexOf("where") > 0) tempQuery = query + " and " + tempID + ">=" + vec.get(k) + " and " + tempID + "<=" + vec.get(k + deltaID); else - tempQuery = query + "where " + tempID + ">=" + vec.get(k) + " and " + tempID + "<=" + vec.get(k + deltaID); + tempQuery = query + " where " + tempID + ">=" + vec.get(k) + " and " + tempID + "<=" + vec.get(k + deltaID); System.out.println(tempQuery); if(dialog!=null) dialog.title.setText("Reading table data ..."); @@ -1117,96 +1113,9 @@ class Convert // FM2SQL.fmInstance=new FM2SQL(); } catch (Exception e) { - // TODO Auto-generated catch block + e.printStackTrace(); } - /* - Node tempNode=root.find(rootNode,new int[] {1}); - if(tempNode==null) return rtTag; - int count=1; - /* - for(int i=0;i1) - { - for(int j=0;j