Ejemplo n.º 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)));
   }
 }
Ejemplo n.º 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])));
   }
 }