createColumnNames();
}
protected void addSelectStatement(SelectStatement pQuery) {
for (Iterator tableIter = pQuery.getSelectTableReferences(); tableIter.hasNext(); ) {
TableReference tableReference = (TableReference) tableIter.next();
Table.Name alias = tableReference.getAlias();
if (alias != null) {
if (aliases.containsKey(alias.getName())) {
throw new NullPointerException("The alias " + alias +
" is used twice for the tables " +
((TableReference) aliases.get(alias)).getTable().getName() +
" and " + tableReference.getTable().getName());
}
aliases.put(alias.getName(), tableReference);
}
tables.add(tableReference);