version 1.21, 2004/01/28 12:22:35
|
version 1.25, 2004/01/30 13:18:54
|
Line 489 class Convert
|
Line 489 class Convert
|
dialog.setLocation(FM2SQL.fmInstance.getLocationOnScreen().x+(FM2SQL.fmInstance.getWidth()-400)/2,FM2SQL.fmInstance.getLocationOnScreen().y+(FM2SQL.fmInstance.getHeight()-250)/2); |
dialog.setLocation(FM2SQL.fmInstance.getLocationOnScreen().x+(FM2SQL.fmInstance.getWidth()-400)/2,FM2SQL.fmInstance.getLocationOnScreen().y+(FM2SQL.fmInstance.getHeight()-250)/2); |
dialog.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); |
dialog.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); |
FM2SQL.fmInstance.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); |
FM2SQL.fmInstance.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); |
|
java.util.TreeSet myIds; |
|
int deltaID = 1; |
dialog.thread=Thread.currentThread(); |
dialog.thread=Thread.currentThread(); |
// setting user and passwd |
// setting user and passwd |
bean.setUserAndPasswd(user,passwd); |
bean.setUserAndPasswd(user,passwd); |
Line 536 class Convert
|
Line 538 class Convert
|
//result = bean.getQueryData(query, dialog, 0); |
//result = bean.getQueryData(query, dialog, 0); |
bean.getConnection(); |
bean.getConnection(); |
bean.makeQuery(query, 50); |
bean.makeQuery(query, 50); |
System.out.println("ID LIST "+bean.getIDVector(ids.get(tbIndex).toString(),(String) names.get(tbIndex)).size()); |
// @TODO id Vector must be used in querys while loop over id ranges where id>=start and id<=end |
|
myIds = bean.getIDVector(ids.get(tbIndex).toString(),(String) names.get(tbIndex),query); |
|
System.out.println("ID LIST SIZE "+Math.round((double)myIds.size()/10.0)); |
|
deltaID =(int) Math.round((double)myIds.size()/10.0); |
} catch (Exception e) |
} catch (Exception e) |
{ |
{ |
continue; |
continue; |
Line 641 class Convert
|
Line 645 class Convert
|
command.append("?)"); |
command.append("?)"); |
PreparedStatement pstm = beanDest.getConnection().prepareStatement(command.toString()); |
PreparedStatement pstm = beanDest.getConnection().prepareStatement(command.toString()); |
System.out.println(command); |
System.out.println(command); |
int rowCount= bean.getRowCount(query); |
int rowCount= myIds.size();//bean.getRowCount(query) |
|
Vector vec = new Vector(myIds); |
|
for(int k=0;k<vec.size()-deltaID;k=k+deltaID) |
|
{ |
|
System.out.println(vec.get(k)+" "+vec.get(k+deltaID)+" "+vec.lastElement()); |
|
} |
while((row=bean.getNextRow())!=null) |
while((row=bean.getNextRow())!=null) |
{ |
{ |
j++; |
j++; |