Class ExtObjectUpdateContext

    • Constructor Detail

      • ExtObjectUpdateContext

        public ExtObjectUpdateContext​(long bmObjectId,
                                      org.eclipse.emf.ecore.EClass eClass,
                                      String segmentId,
                                      boolean removal,
                                      Object computationCause,
                                      long baseVersion)
        Creates a new instance of the context.
        Parameters:
        bmObjectId - The identifier of the top BM object this context corresponds to
        eClass - The EClass of the of the top BM object this context corresponds to
        segmentId - The identifier of DD segment this context belongs to
        computationCause - The identifier of the sync. session
        baseVersion - The base verison of the context
      • ExtObjectUpdateContext

        public ExtObjectUpdateContext​(Object objectId,
                                      org.eclipse.emf.ecore.EClass eClass,
                                      String segmentId,
                                      boolean removal,
                                      Object computationCause,
                                      long baseVersion)
        Creates a new instance of the context.
        Parameters:
        bmObjectId - The identifier of the top BM object this context corresponds to
        eClass - The EClass of the of the top BM object this context corresponds to
        segmentId - The identifier of DD segment this context belongs to
        computationCause - The identifier of the sync. session
        baseVersion - The base verison of the context
    • Method Detail

      • addFeature

        public void addFeature​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Adds a changed feature to the context.
        Parameters:
        feature - The featureset that is changed for this object
      • addFeatures

        public void addFeatures​(Collection<org.eclipse.emf.ecore.EStructuralFeature> features)
        Adds a collection of changed features to the context
        Parameters:
        features - The features to set. May not be null
      • clear

        public void clear()
        Description copied from interface: IObjectDerivedDataContext
        Clears the context. Implemenentations aren't required to be safe, the thread safety during the snapshot creation is supported by the DD context management facilities (due to complexity and performance reasons).
      • getContainmentContext

        public ExtObjectContainmentUpdateContext getContainmentContext​(IBmObject bmObject)
        Gets context for the containment object.
        Parameters:
        bmObject - The object to get context for.
        Returns:
        The specific containment context.
      • getContainmentContext

        public ExtObjectContainmentUpdateContext getContainmentContext​(long bmObjectId)
        Gets context for the containment object.
        Parameters:
        bmObjectId - The BM object identifier to get context for.
        Returns:
        The specific containment context.
      • getContainmentContexts

        public Collection<ExtObjectContainmentUpdateContext> getContainmentContexts()
        Gets the collection containment contexts associated with this context.
        Returns:
        The collection of containment contexts.
      • getFeatures

        public Collection<org.eclipse.emf.ecore.EStructuralFeature> getFeatures()
        Gets the set of DD parts being collected within this context.
        Returns:
        The set of DD parts scheduled for the re-computation.
      • getSnapshot

        public IObjectDerivedDataContext getSnapshot()
        Description copied from interface: IObjectDerivedDataContext
        Gets the snapshot of the context. Implemenentations aren't required to be safe, the thread safety during the snapshot creation is supported by the DD context management facilities (due to complexity and performance reasons).
        Returns:
        The current snapshot of the context state.
      • mergeUpdates

        public boolean mergeUpdates​(IObjectDerivedDataContext context)
        Description copied from interface: IObjectDerivedDataContext
        Merges updates into the context. The base version of this context is being updated according to the verison of the provided context
        Parameters:
        context - The source of updates. Cannot be null.