public void createDatabase(Database database, boolean dropTable) throws IOException {     if (dropTable) { List tables = database.getTables(); for (int i = tables.size() - 1; i >= 0; i-- ) { table = (Table) tables.get(i); dropTable(table); } }  for (Iterator iter = database.getTables().iterator(); iter.hasNext(); ) { table = (Table) iter.next(); tableComment(table); createTable(table); }
public void createDatabase(Database database) throws IOException { createDatabase(database, true);
    public void createDatabase(Database database, boolean dropTable) throws IOException {                // lets drop the tables in reverse order as its less likely to cause        // problems with referential constraints                if (dropTable) {            List tables = database.getTables();            for (int i = tables.size() - 1; i >= 0; i-- ) {                table = (Table) tables.get(i);                dropTable(table);            }        }                    for (Iterator iter = database.getTables().iterator(); iter.hasNext(); ) {            table = (Table) iter.next();            tableComment(table);            createTable(table);        }    }