version 1.5, 2004/01/12 13:22:36
|
version 1.7, 2004/01/13 12:30:28
|
Line 307 class Convert
|
Line 307 class Convert
|
|
|
|
|
|
|
public static void convert(String source,String destination,Vector names,Vector layouts,Vector selects,Vector creates) throws Exception |
public static void convert(String source,String destination,Vector names,Vector layouts,Vector selects,Vector creates,int mode) throws Exception |
{ |
{ |
FM2SQL.ProgressDialog dialog = new FM2SQL.ProgressDialog(FM2SQL.fmInstance); |
FM2SQL.ProgressDialog dialog = new FM2SQL.ProgressDialog(FM2SQL.fmInstance); |
dialog.setTitle("Conversion running ..."); |
dialog.setTitle("Conversion running ..."); |
Line 377 class Convert
|
Line 377 class Convert
|
// System.out.println(beanDest.getTableNames(beanDest.getCatalogs().get(2).toString())); |
// System.out.println(beanDest.getTableNames(beanDest.getCatalogs().get(2).toString())); |
stm = beanDest.getConnection().createStatement(); |
stm = beanDest.getConnection().createStatement(); |
// System.exit(0); |
// System.exit(0); |
if(true) |
if(mode==Convert.DataBase.CONVERT_MODE) |
{ |
{ |
if(tables.indexOf(names.get(tbIndex))>=0) |
if(tables.indexOf(names.get(tbIndex))>=0) |
{ |
{ |