@Override protected Collection<String> getSelectTableAliases(Select sel) { Set<String> result = new HashSet<String>(); List<String> selects = sel.getIdentifierAliases(); for (String s : selects) { String tableAlias = s.substring(0, s.indexOf('.')); result.add(tableAlias); } return result; }
@Override protected Collection<String> getSelectTableAliases(Select sel) { Set<String> result = new HashSet<String>(); List<String> selects = sel.getIdentifierAliases(); for (String s : selects) { String tableAlias = s.substring(0, s.indexOf('.')); result.add(tableAlias); } return result; }
@Override protected Collection<String> getSelectTableAliases(Select sel) { Set<String> result = new HashSet<String>(); List<String> selects = sel.getIdentifierAliases(); for (String s : selects) { String tableAlias = s.substring(0, s.indexOf('.')); result.add(tableAlias); } return result; }
@Override protected Collection<String> getSelectTableAliases(Select sel) { Set<String> result = new HashSet<String>(); List<String> selects = sel.getIdentifierAliases(); for (String s : selects) { String tableAlias = s.substring(0, s.indexOf('.')); result.add(tableAlias); } return result; }
@Override protected Collection<String> getSelectTableAliases(Select sel) { Set<String> result = new HashSet<String>(); List<String> selects = sel.getIdentifierAliases(); for (String s : selects) { String tableAlias = s.substring(0, s.indexOf('.')); result.add(tableAlias); } return result; }
@Override protected Collection<String> getSelectTableAliases(Select sel) { Set<String> result = new HashSet<String>(); List<String> selects = sel.getIdentifierAliases(); for (String s : selects) { String tableAlias = s.substring(0, s.indexOf('.')); result.add(tableAlias); } return result; }
@Override protected Collection<String> getSelectTableAliases(Select sel) { Set<String> result = new HashSet<String>(); List<String> selects = sel.getIdentifierAliases(); for (String s : selects) { String tableAlias = s.substring(0, s.indexOf('.')); result.add(tableAlias); } return result; }
@Override protected Collection<String> getSelectTableAliases(Select sel) { Set<String> result = new HashSet<String>(); List<String> selects = sel.getIdentifierAliases(); for (String s : selects) { String tableAlias = s.substring(0, s.indexOf('.')); result.add(tableAlias); } return result; }
/** * Return the portion of the select statement between the SELECT keyword * and the FROM keyword. */ protected SQLBuffer getSelects(Select sel, boolean distinctIdentifiers, boolean forUpdate) { // append the aliases for all the columns SQLBuffer selectSQL = new SQLBuffer(this); List aliases; if (distinctIdentifiers) aliases = sel.getIdentifierAliases(); else aliases = sel.getSelectAliases(); Object alias; for (int i = 0; i < aliases.size(); i++) { alias = aliases.get(i); appendSelect(selectSQL, alias, sel, i); if (i < aliases.size() - 1) selectSQL.append(", "); } return selectSQL; }
/** * Return the portion of the select statement between the SELECT keyword * and the FROM keyword. */ protected SQLBuffer getSelects(Select sel, boolean distinctIdentifiers, boolean forUpdate) { // append the aliases for all the columns SQLBuffer selectSQL = new SQLBuffer(this); List aliases; if (distinctIdentifiers) aliases = sel.getIdentifierAliases(); else aliases = sel.getSelectAliases(); Object alias; for (int i = 0; i < aliases.size(); i++) { alias = aliases.get(i); if (alias instanceof String) { alias = getNamingUtil().convertAlias((String)alias); } appendSelect(selectSQL, alias, sel, i); if (i < aliases.size() - 1) selectSQL.append(", "); } return selectSQL; }
/** * Return the portion of the select statement between the SELECT keyword * and the FROM keyword. */ protected SQLBuffer getSelects(Select sel, boolean distinctIdentifiers, boolean forUpdate) { // append the aliases for all the columns SQLBuffer selectSQL = new SQLBuffer(this); List aliases; if (distinctIdentifiers) aliases = sel.getIdentifierAliases(); else aliases = sel.getSelectAliases(); Object alias; for (int i = 0; i < aliases.size(); i++) { alias = aliases.get(i); if (alias instanceof String) { alias = getNamingUtil().convertAlias((String)alias); } appendSelect(selectSQL, alias, sel, i); if (i < aliases.size() - 1) selectSQL.append(", "); } return selectSQL; }
/** * Return the portion of the select statement between the SELECT keyword * and the FROM keyword. */ protected SQLBuffer getSelects(Select sel, boolean distinctIdentifiers, boolean forUpdate) { // append the aliases for all the columns SQLBuffer selectSQL = new SQLBuffer(this); List aliases; if (distinctIdentifiers) aliases = sel.getIdentifierAliases(); else aliases = sel.getSelectAliases(); Object alias; for (int i = 0; i < aliases.size(); i++) { alias = aliases.get(i); if (alias instanceof String) { alias = getNamingUtil().convertAlias((String)alias); } appendSelect(selectSQL, alias, sel, i); if (i < aliases.size() - 1) selectSQL.append(", "); } return selectSQL; }
/** * Return the portion of the select statement between the SELECT keyword * and the FROM keyword. */ protected SQLBuffer getSelects(Select sel, boolean distinctIdentifiers, boolean forUpdate) { // append the aliases for all the columns SQLBuffer selectSQL = new SQLBuffer(this); List aliases; if (distinctIdentifiers) aliases = sel.getIdentifierAliases(); else aliases = sel.getSelectAliases(); Object alias; for (int i = 0; i < aliases.size(); i++) { alias = aliases.get(i); if (alias instanceof String) { alias = getNamingUtil().convertAlias((String)alias); } appendSelect(selectSQL, alias, sel, i); if (i < aliases.size() - 1) selectSQL.append(", "); } return selectSQL; }
List aliases; if (distinctIdentifiers) aliases = sel.getIdentifierAliases(); else aliases = sel.getSelectAliases();
List aliases; if (distinctIdentifiers) aliases = sel.getIdentifierAliases(); else aliases = sel.getSelectAliases();
List aliases; if (distinctIdentifiers) aliases = sel.getIdentifierAliases(); else aliases = sel.getSelectAliases();
List aliases; if (distinctIdentifiers) aliases = sel.getIdentifierAliases(); else aliases = sel.getSelectAliases();
List aliases; if (distinctIdentifiers) aliases = sel.getIdentifierAliases(); else aliases = sel.getSelectAliases();
: sel.getIdentifierAliases(); if (useWildCardForCount || aliases.isEmpty()) { selectSQL.append("COUNT(*)");
: sel.getIdentifierAliases(); if (useWildCardForCount || aliases.isEmpty()) { selectSQL.append("COUNT(*)");