// PERF: Only process changed mappings.
ObjectChangeSet changeSet = query.getObjectChangeSet();
if ((changeSet != null) && (!changeSet.isNew())) {
List changeRecords = changeSet.getChanges();
for (Iterator iterator = changeRecords.iterator(); iterator.hasNext(); ) {
ChangeRecord record = (ChangeRecord)iterator.next();
record.getMapping().postUpdate(query);
}
} else {
List<DatabaseMapping> mappings = builder.getRelationshipMappings();
int size = mappings.size();
for (int index = 0; index < size; index++) {