/** * If there is no where clause, alias the tables from the tables list directly. Assume there's * no ambiguity */ public void computeTablesFromTables() { Map<DatabaseTable, DatabaseTable> allTables = new Hashtable(); AsOfClause asOfClause = null; if (getBuilder().hasAsOfClause() && !getBuilder().getSession().getProject().hasGenericHistorySupport()) { asOfClause = getBuilder().getAsOfClause(); } for (int index = 0; index < getTables().size(); index++) { DatabaseTable next = getTables().get(index); // Aliases in allTables must now be decorated database tables. DatabaseTable alias = new DecoratedDatabaseTable("t" + (index), asOfClause); allTables.put(alias, next); } setTableAliases(allTables); }
/** * If there is no where clause, alias the tables from the tables list directly. Assume there's * no ambiguity */ public void computeTablesFromTables() { Map<DatabaseTable, DatabaseTable> allTables = new Hashtable(); AsOfClause asOfClause = null; if (getBuilder().hasAsOfClause() && !getBuilder().getSession().getProject().hasGenericHistorySupport()) { asOfClause = getBuilder().getAsOfClause(); } for (int index = 0; index < getTables().size(); index++) { DatabaseTable next = getTables().get(index); // Aliases in allTables must now be decorated database tables. DatabaseTable alias = new DecoratedDatabaseTable("t" + (index), asOfClause); allTables.put(alias, next); } setTableAliases(allTables); }
/** * If there is no where clause, alias the tables from the tables list directly. Assume there's * no ambiguity */ public void computeTablesFromTables() { Hashtable allTables = new Hashtable(); AsOfClause asOfClause = null; if (getBuilder().hasAsOfClause() && !getBuilder().getSession().getProject().hasGenericHistorySupport()) { asOfClause = getBuilder().getAsOfClause(); } for (int index = 0; index < getTables().size(); index++) { DatabaseTable next = (DatabaseTable)getTables().elementAt(index); // Aliases in allTables must now be decorated database tables. DatabaseTable alias = new DecoratedDatabaseTable("t" + (index), asOfClause); allTables.put(alias, next); } setTableAliases(allTables); }