// maps key is the column name, and the maps value is the
// number of possible references. In other words: If an entry
// in the map has a value > 1, then its column name must be
// qualified, because it is used in multiple tables.
for (int i = 0; i < tables.size(); i++) {
TableReference table = (TableReference) tables.get(i);
for (Iterator iter = table.getTable().getColumns(); iter.hasNext(); ) {
Column col = (Column) iter.next();
addColumnName(col.getName());
}
}
}