session.getMsgBus().addHandler(TableEvent.TYPE,
new TableEventHandler() {
@Override
public void onTable(TableEvent e) {
ObjectArray expr;
if (session.getFilters().size() > 0) {
config2.fireOnTableChange(session.getFilters());
// XXX need to do distinct?
expr = ObjectArray.newInstance();
TableFilter tf = session.getFilters().get(0);
String alias = tf.getAlias();
for (Column col : tf.getTable().getColumns()) {
expr.add(new ExpressionColumn(session, null, alias,
col.getName()));
}
} else {
expr = null;
}