/** * INTERNAL: * Update the reference objects. */ @Override public void postUpdate(WriteObjectQuery query) throws DatabaseException, OptimisticLockException { if (this.isReadOnly) { return; } if (!requiresDataModificationEvents() && !shouldObjectModifyCascadeToParts(query)){ return; } // if the target objects are not instantiated, they could not have been changed.... if (!isAttributeValueInstantiatedOrChanged(query.getObject())) { return; } if (query.getObjectChangeSet() != null) { // UnitOfWork writeChanges(query.getObjectChangeSet(), query); } else { // OLD COMMIT compareObjectsAndWrite(query); } }
/** * INTERNAL: * Update the reference objects. */ @Override public void postUpdate(WriteObjectQuery query) throws DatabaseException, OptimisticLockException { if (this.isReadOnly) { return; } if (!requiresDataModificationEvents() && !shouldObjectModifyCascadeToParts(query)){ return; } // if the target objects are not instantiated, they could not have been changed.... if (!isAttributeValueInstantiatedOrChanged(query.getObject())) { return; } if (query.getObjectChangeSet() != null) { // UnitOfWork writeChanges(query.getObjectChangeSet(), query); } else { // OLD COMMIT compareObjectsAndWrite(query); } }
/** * INTERNAL: * Update the reference objects. */ public void postUpdate(WriteObjectQuery query) throws DatabaseException, OptimisticLockException { if (isReadOnly()) { return; } if (!requiresDataModificationEvents() && !shouldObjectModifyCascadeToParts(query)){ return; } // if the target objects are not instantiated, they could not have been changed.... if (!isAttributeValueInstantiatedOrChanged(query.getObject())) { return; } // manage objects added and removed from the collection Object objectsInMemory = getRealCollectionAttributeValueFromObject(query.getObject(), query.getSession()); Object objectsInDB = readPrivateOwnedForObject(query); compareObjectsAndWrite(objectsInDB, objectsInMemory, query); }
if (!shouldObjectModifyCascadeToParts(query)) { if (this.listOrderField != null) { updateTargetRowPreDeleteSource(query);
if (!shouldObjectModifyCascadeToParts(query)) { if(this.listOrderField != null) { updateTargetRowPreDeleteSource(query);
if (!shouldObjectModifyCascadeToParts(query)) { if (this.listOrderField != null) { updateTargetRowPreDeleteSource(query);
if (shouldObjectModifyCascadeToParts(query) && !query.shouldCascadeOnlyDependentParts()) { Object objects = getRealCollectionAttributeValueFromObject(query.getObject(), query.getSession());
if (shouldObjectModifyCascadeToParts(query) && !query.shouldCascadeOnlyDependentParts()) { Object objects = getRealCollectionAttributeValueFromObject(query.getObject(), query.getSession());
if (shouldObjectModifyCascadeToParts(query) && !query.shouldCascadeOnlyDependentParts()) { Object objects = getRealCollectionAttributeValueFromObject(query.getObject(), query.getSession());