private boolean isReleased(final CDORevisionDelta revisionDelta, final EAttribute releasedAttribute) { final CDOFeatureDelta releasedFeatureDelta = revisionDelta.getFeatureDelta(releasedAttribute); if (releasedFeatureDelta instanceof CDOSetFeatureDelta) { return (boolean) ((CDOSetFeatureDelta) releasedFeatureDelta).getValue(); } return false; }
public void visit(CDOSetFeatureDelta featureChange) { persist(referrer, featureChange.getValue()); }
public void visit(CDOSetFeatureDelta featureChange) { persist(referrer, featureChange.getValue()); }
public void visit(CDOSetFeatureDelta delta) { setListItem(accessor, id, delta.getIndex(), delta.getValue(), created); }
public void visit(CDOSetFeatureDelta delta) { int index = delta.getIndex(); if (TRACER.isEnabled()) { TRACER.format("Delta Setting at: {0}", index); //$NON-NLS-1$ } // remove the item removeEntry(accessor, id, oldVersion, newVersion, index); // create the item addEntry(accessor, id, newVersion, index, delta.getValue(), timestamp); }
@Override public void visit(CDOSetFeatureDelta delta) { if (isContainment(delta.getFeature())) { handleContainment(delta.getValue(), 1); } }
@Override public void visit(CDOSetFeatureDelta delta) { revision.set(delta.getFeature(), delta.getIndex(), delta.getValue()); }
public void visit(CDOSetFeatureDelta delta) { int index = delta.getIndex(); if (TRACER.isEnabled()) { TRACER.format("Delta Setting at: {0}", index); //$NON-NLS-1$ } // remove the item removeEntry(accessor, id, branchID, oldVersion, newVersion, index, timestamp); // create the item addEntry(accessor, id, branchID, newVersion, index, delta.getValue(), timestamp); }
Object newValue = setFeatureDelta.getValue(); if (newValue instanceof InternalCDOObject)
private void registerInactivationOrUpdate(final EClass eClass, final String conceptId, final String componentId, CDORevisionDelta revisionDelta) { CDOSetFeatureDelta activeDelta = (CDOSetFeatureDelta) revisionDelta.getFeatureDelta(SnomedPackage.Literals.COMPONENT__ACTIVE); if (activeDelta != null && Boolean.FALSE.equals(activeDelta.getValue())) { entry.registerChange(conceptId, new TraceabilityChange(eClass, componentId, ChangeType.INACTIVATE)); } else { for (CDOFeatureDelta featureDelta : revisionDelta.getFeatureDeltas()) { if (!IGNORED_FEATURES.contains(featureDelta.getFeature())) { entry.registerChange(conceptId, new TraceabilityChange(eClass, componentId, ChangeType.UPDATE)); } } } }
@Override public void visit(CDOSetFeatureDelta delta) { EStructuralFeature feature = delta.getFeature(); Object value = null; if (feature.isMany()) { value = workList.set(delta.getIndex(), delta.getValue()); } else { value = ((InternalCDORevision)oldRevision).getValue(feature); } ((CDOSetFeatureDeltaImpl)delta).setOldValue(value); } };
Object newValue = setFeatureDelta.getValue(); if (newValue instanceof InternalCDOObject)
public void visit(CDOSetFeatureDelta delta) { if (delta.getFeature().isMany()) { throw new ImplementationError("Should not be called"); //$NON-NLS-1$ } ITypeMapping am = getValueMapping(delta.getFeature()); if (am == null) { throw new IllegalArgumentException("AttributeMapping for " + delta.getFeature() + " is null!"); //$NON-NLS-1$ //$NON-NLS-2$ } attributeChanges.add(Pair.create(am, delta.getValue())); }
public void visit(CDOSetFeatureDelta delta) { finishPendingRemove(); int index = delta.getIndex(); if (TRACER.isEnabled()) { TRACER.format("Delta Setting at: {0}", index); //$NON-NLS-1$ } // remove the item removeEntry(accessor, id, branchID, oldVersion, newVersion, index); // create the item addEntry(accessor, id, branchID, newVersion, index, delta.getValue()); }
public void visit(CDOSetFeatureDelta delta) { finishPendingRemove(); int index = delta.getIndex(); if (TRACER.isEnabled()) { TRACER.format("Delta Setting at: {0}", index); //$NON-NLS-1$ } // remove the item removeEntry(accessor, id, oldVersion, newVersion, index); // create the item addEntry(accessor, id, newVersion, index, delta.getValue()); }
@Override public void visit(CDOSetFeatureDelta delta) { EStructuralFeature feature = delta.getFeature(); Object value = null; if (feature.isMany()) { value = workList.set(delta.getIndex(), delta.getValue()); } else { value = ((InternalCDORevision)oldRevision).getValue(feature); } ((CDOSetFeatureDeltaImpl)delta).setOldValue(value); // Adjust delta } };
public void visit(CDOSetFeatureDelta delta) { if (TRACER.isEnabled()) { TRACER.format(" - set at {0} value {1}", delta.getIndex(), delta.getValue()); //$NON-NLS-1$ } ManipulationElement e = findElement(delta.getIndex()); // set the new value e.value = delta.getValue(); // if the item is freshly inserted we do not set the SET-mark. // setting the value of a new item results in inserting with the // new value at once. if (!e.is(ManipulationConstants.INSERT)) { // else mark the existing item to be set to a new value e.addType(ManipulationConstants.SET_VALUE); } }
final ConflictingChange changeOnSource = new ConflictingChange(sourceDelta.getID(), targetFeature, ((CDOSetFeatureDelta) sourceFeatureDelta).getValue()); final ConflictingChange changeOnTarget = new ConflictingChange(targetDelta.getID(), targetFeature, ((CDOSetFeatureDelta) targetFeatureDelta).getValue()); conflictSet.add(new ConflictWrapper(changeOnTarget, changeOnSource)); final ConflictingChange changeOnSource = new ConflictingChange(sourceDelta.getID(), sourceFeature, ((CDOSetFeatureDelta) sourceFeatureDelta).getValue()); final ConflictingChange changeOnTarget = new ConflictingChange(DELETED, conflict.getID()); conflictSet.add(new ConflictWrapper(changeOnTarget, changeOnSource)); final ConflictingChange changeOnTarget = new ConflictingChange(targetDelta.getID(), targetFeature, ((CDOSetFeatureDelta) targetFeatureDelta).getValue()); conflictSet.add(new ConflictWrapper(changeOnTarget, changeOnSource));
@Override public void visit(CDOSetFeatureDelta delta) { EStructuralFeature feature = delta.getFeature(); Object oldValue = getOldValue(feature); if (oldValue instanceof CDOID) { CDOID oldID = (CDOID)oldValue; CDOObject object = findObjectByID(oldID); if (object != null) { oldValue = object; } } Object newValue = delta.getValue(); add(createNotification(Notification.SET, feature, oldValue, newValue, delta.getIndex())); }
@Override public void visit(CDOSetFeatureDelta delta) { EStructuralFeature feature = delta.getFeature(); Object oldValue = getOldValue(feature); if (oldValue instanceof CDOID) { CDOID oldID = (CDOID)oldValue; CDOObject object = findObjectByID(oldID); if (object != null) { oldValue = object; } } add(new CDODeltaNotificationImpl(object, Notification.SET, getEFeatureID(feature), oldValue, delta.getValue(), delta.getIndex())); }