Example #1
0
 private void appendSelectExpressions(
     SelectFragment fragment, List selections, AliasGenerator aliasGenerator) {
   Iterator itr = fragment.getColumns().iterator();
   while (itr.hasNext()) {
     final String column = (String) itr.next();
     selections.add(new BasicSelectExpression(column, aliasGenerator.generateAlias(column)));
   }
 }
Example #2
0
 private void appendSelectExpressions(
     String[] columnNames, List selections, AliasGenerator aliasGenerator) {
   for (int i = 0; i < columnNames.length; i++) {
     selections.add(
         new BasicSelectExpression(
             collectionTableAlias() + '.' + columnNames[i],
             aliasGenerator.generateAlias(columnNames[i])));
   }
 }