*/
public void fixObjectReferences(Object object, Map objectDescriptors, Map processedObjects, ObjectLevelReadQuery query, DistributedSession session) {
Object attributeValue = this.mapping.getAttributeValueFromObject(object);
//bug 4147755 if it is not a Remote Valueholder then treat as if there was no VH...
if (attributeValue instanceof RemoteValueHolder){
RemoteValueHolder rvh = (RemoteValueHolder)this.mapping.getAttributeValueFromObject(object);
rvh.setSession(session);
rvh.setMapping(this.mapping);
if ((!query.shouldMaintainCache()) && ((!query.shouldCascadeParts()) || (query.shouldCascadePrivateParts() && (!this.mapping.isPrivateOwned())))) {
rvh.setQuery(null);
} else {
rvh.setQuery(query);
}
// set to uninstantiated since no objects are serialized past remote value holders
rvh.setUninstantiated();
}else{
this.mapping.fixRealObjectReferences(object, objectDescriptors, processedObjects, query, session);
}
}