this.dataResults = dataResults;
if(getJoinedMappingQueries_() != null && !getJoinedMappingQueries_().isEmpty() && dataResults != null && !dataResults.isEmpty()) {
Iterator it = getJoinedMappingQueries_().entrySet().iterator();
while(it.hasNext()) {
Map.Entry entry = (Map.Entry)it.next();
ObjectLevelReadQuery nestedQuery = (ObjectLevelReadQuery)entry.getValue();
if(nestedQuery.getJoinedAttributeManager().isToManyJoin()) {
ForeignReferenceMapping frMapping = (ForeignReferenceMapping)entry.getKey();
Object indexObject = getJoinedMappingIndexes_().get(entry.getKey());
List nestedDataResults = new ArrayList(dataResults.size());
for(int i=0; i < dataResults.size(); i++) {
AbstractRecord row = (AbstractRecord)dataResults.get(i);
nestedDataResults.add(frMapping.trimRowForJoin(row, indexObject, session));
}
nestedQuery.getJoinedAttributeManager().setDataResults(nestedDataResults, session);
}
}
}
}