// so, we need to set the relationshipInfo for those domain objects.
setRelationshipInfo(fields.get(index).getValue());
}
}
} else if (entity instanceof ReadAllQueryResultCollection) {
ReadAllQueryResultCollection list = (ReadAllQueryResultCollection) entity;
List<Object> items = list.getItems();
if ((items != null) && (!items.isEmpty())) {
for (int i = 0; i < items.size(); i++) {
Object item = items.get(i);
setRelationshipInfo(item);
}
}
} else if (entity instanceof ReportQueryResultCollection) {
ReportQueryResultCollection list = (ReportQueryResultCollection) entity;
List<ReportQueryResultListItem> items = list.getItems();
if ((items != null) && (!items.isEmpty())) {
for (int i = 0; i < items.size(); i++) {
ReportQueryResultListItem item = items.get(i);
setRelationshipInfo(item);
}