@Test public void testKeepAliases() throws Exception { String sql = "select g.intkey as a, g.stringkey as b from BQT1.SmallA g, BQT1.SmallB ORDER BY a, b"; String expected = "SELECT g.IntKey AS c_0, g.StringKey AS c_1 FROM BQT1.SmallA AS g, BQT1.SmallB AS g_1 ORDER BY c_0, c_1"; AliasGenerator av = new AliasGenerator(true, false); Map<String, String> aliasMap = new HashMap<String, String>(); aliasMap.put("g", "g"); av.setAliasMapping(aliasMap); helpTest(sql, expected, RealMetadataFactory.exampleBQTCached(), av); }
public void setAliasMapping(Map<String, String> aliasMapping) { this.aliasMapping = aliasMapping; }
AliasGenerator extends PreOrderNavigator { public void setAliasMapping(Map<String, String> aliasMapping) { this.aliasMapping = aliasMapping; } }
AliasGenerator extends PreOrderNavigator { public void setAliasMapping(Map<String, String> aliasMapping) { this.aliasMapping = aliasMapping; } AliasGenerator(boolean aliasGroups);  AliasGenerator(boolean aliasGroups, boolean stripColumnAliases); }
AliasGenerator extends PreOrderNavigator { public void setAliasMapping(Map<String, String> aliasMapping) { this.aliasMapping = aliasMapping; } AliasGenerator(boolean aliasGroups);  AliasGenerator(boolean aliasGroups, boolean stripColumnAliases); void visit(SetQuery obj); void visit(Select obj); @Override void visit(StoredProcedure obj); void visit(Query obj); void visit(SubqueryFromClause obj); @Override void visit(UnaryFromClause obj); void visit(ScalarSubquery obj); void visit(SubqueryCompareCriteria obj); void visit(SubquerySetCriteria obj); void visit(ExistsCriteria obj); @Override void visit(WithQueryCommand obj); void visit(OrderBy obj); void visit(Reference obj); void setAliasMapping(Map<String, String> aliasMapping); void setCorrelationGroups(Collection<String> correlationGroups); }
AliasGenerator extends PreOrderNavigator { public void setAliasMapping(Map<String, String> aliasMapping) { this.aliasMapping = aliasMapping; } AliasGenerator(boolean aliasGroups);  AliasGenerator(boolean aliasGroups, boolean stripColumnAliases); void visit(SetQuery obj); void visit(Select obj); @Override void visit(StoredProcedure obj); void visit(Query obj); void visit(SubqueryFromClause obj); @Override void visit(UnaryFromClause obj); void visit(ScalarSubquery obj); void visit(SubqueryCompareCriteria obj); void visit(SubquerySetCriteria obj); void visit(ExistsCriteria obj); @Override void visit(WithQueryCommand obj); void visit(OrderBy obj); void visit(Reference obj); void setAliasMapping(Map<String, String> aliasMapping); void setCorrelationGroups(Collection<String> correlationGroups);  }