/** * INTERNAL: * Get a value from the object and set that in the respective field of the row. * But before that check if the reference object is instantiated or not. */ public void writeFromObjectIntoRowForUpdate(WriteObjectQuery query, AbstractRecord record) { if (!areObjectsToBeProcessedInstantiated(query.getObject())) { return; } if (query.getSession().isUnitOfWork()) { if (compareObjects(query.getBackupClone(), query.getObject(), query.getSession())) { return; } } writeFromObjectIntoRow(query.getObject(), record, query.getSession()); }
/** * INTERNAL: * Get a value from the object and set that in the respective field of the row. * But before that check if the reference object is instantiated or not. */ @Override public void writeFromObjectIntoRowForUpdate(WriteObjectQuery query, AbstractRecord record) { if (!areObjectsToBeProcessedInstantiated(query.getObject())) { return; } if (query.getSession().isUnitOfWork()) { if (compareObjects(query.getBackupClone(), query.getObject(), query.getSession())) { return; } } writeFromObjectIntoRow(query.getObject(), record, query.getSession(), WriteType.UPDATE); }
/** * INTERNAL: * Get a value from the object and set that in the respective field of the row. * But before that check if the reference object is instantiated or not. */ @Override public void writeFromObjectIntoRowForUpdate(WriteObjectQuery query, AbstractRecord record) { if (!areObjectsToBeProcessedInstantiated(query.getObject())) { return; } if (query.getSession().isUnitOfWork()) { if (compareObjects(query.getBackupClone(), query.getObject(), query.getSession())) { return; } } writeFromObjectIntoRow(query.getObject(), record, query.getSession(), WriteType.UPDATE); }
if (!areObjectsToBeProcessedInstantiated(target)) { } else if (!areObjectsToBeProcessedInstantiated(source)) { if (mergeManager.shouldMergeWorkingCopyIntoOriginal() && (!areObjectsToBeProcessedInstantiated(source))) { setAttributeValueInObject(target, this.indirectionPolicy.getOriginalIndirectionObject(getAttributeValueFromObject(source), targetSession)); return;
if (!areObjectsToBeProcessedInstantiated(target)) { } else if (!areObjectsToBeProcessedInstantiated(source)) { if (mergeManager.shouldMergeWorkingCopyIntoOriginal() && (!areObjectsToBeProcessedInstantiated(source))) { setAttributeValueInObject(target, this.indirectionPolicy.getOriginalIndirectionObject(getAttributeValueFromObject(source), targetSession)); return;
if (!areObjectsToBeProcessedInstantiated(target)) { } else if (!areObjectsToBeProcessedInstantiated(source)) { if (mergeManager.shouldMergeWorkingCopyIntoOriginal() && (!areObjectsToBeProcessedInstantiated(source))) { setAttributeValueInObject(target, getIndirectionPolicy().getOriginalIndirectionObject(getAttributeValueFromObject(source), mergeManager.getSession())); return;