protected void buildStatements() {
dropTables = new HashMap();
createTables = new HashMap();
createConstraints = new HashMap();
DbAdapter adapter = getAdapter();
Iterator it = dbEntitiesInInsertOrder.iterator();
while (it.hasNext()) {
DbEntity dbe = (DbEntity) it.next();
String name = dbe.getName();
// build "DROP TABLE"
dropTables.put(name, adapter.dropTable(dbe));
// build "CREATE TABLE"
createTables.put(name, adapter.createTable(dbe));
// build constraints
createConstraints.put(name, createConstraintsQueries(dbe));
}
PkGenerator pkGenerator = adapter.getPkGenerator();
dropPK = pkGenerator.dropAutoPkStatements(dbEntitiesRequiringAutoPK);
createPK = pkGenerator.createAutoPkStatements(dbEntitiesRequiringAutoPK);
}