Collection collectionOfColumnInfos = new ArrayList();
while ( elementSymbolItr.hasNext() ) {
ElementSymbol elementSymbol = (ElementSymbol) elementSymbolItr.next();
Class elementType = elementSymbol.getType();
String dataType = DataTypeManager.getDataTypeName(elementType);
ColumnInfo columnInfo = new ColumnInfo(elementSymbol.getName(), dataType, elementType);
collectionOfColumnInfos.add(columnInfo);
}
// Save column info
results.addFields(collectionOfColumnInfos);
// -------------------------------