SelectorName oldName = this.source instanceof Selector ? ((Selector)source).name() : null;
// Go through the columns and change the selector name to use the new alias ...
for (int i = 0; i != columns.size(); ++i) {
Column old = columns.get(i);
if (old.selectorName().equals(oldName)) {
columns.set(i, new Column(allNodes.aliasOrName(), old.getPropertyName(), old.getColumnName()));
}
}
this.source = allNodes;
return this;
}