version 1.5, 2005/03/21 10:32:03
|
version 1.6, 2005/03/24 12:50:19
|
Line 93 class Convert
|
Line 93 class Convert
|
|
|
public void executeCommand() throws SQLException, Exception |
public void executeCommand() throws SQLException, Exception |
{ |
{ |
|
System.out.println("Executing command: \n"); |
|
System.out.println(command); |
|
|
java.sql.Connection con = bean.getConnection(); |
java.sql.Connection con = bean.getConnection(); |
Statement stm = con.createStatement(); |
Statement stm = con.createStatement(); |
stm.execute(command); |
stm.execute(command); |
|
stm.close(); |
} |
} |
} |
} |
|
|
Line 115 class Convert
|
Line 119 class Convert
|
|
|
final static int numIntervalls = 4; |
final static int numIntervalls = 4; |
|
|
static boolean debug = false; |
static boolean debug = true; |
|
|
static boolean isGUI = true; |
static boolean isGUI = true; |
|
|
Line 982 class Convert
|
Line 986 class Convert
|
{ |
{ |
databases = getXMLConfig(sb); |
databases = getXMLConfig(sb); |
|
|
|
// destination DataBase object |
|
DataBase dbDest=((DataBase) databases.lastElement()); |
|
|
DBBean database = ((DataBase) databases.lastElement()).bean; |
DBBean database = ((DataBase) databases.lastElement()).bean; |
databases.remove(databases.size() - 1); |
databases.remove(databases.size() - 1); |
|
|
|
for (Iterator iterator = dbDest.preCommands.iterator(); iterator.hasNext();) |
|
{ |
|
SQLCommand sqlCommand = (SQLCommand) iterator.next(); |
|
sqlCommand.executeCommand(); |
|
} |
|
|
// databases.add(database); |
// databases.add(database); |
for (Iterator iter = databases.iterator(); iter.hasNext();) |
for (Iterator iter = databases.iterator(); iter.hasNext();) |
{ |
{ |
Line 1024 class Convert
|
Line 1038 class Convert
|
} |
} |
|
|
} |
} |
|
for (Iterator iterator = dbDest.postCommands.iterator(); iterator.hasNext();) |
|
{ |
|
SQLCommand sqlCommand = (SQLCommand) iterator.next(); |
|
sqlCommand.executeCommand(); |
|
} |
|
|
} catch (Exception e) |
} catch (Exception e) |
{ |
{ |