Class BmSaveManagerTask


  • public final class BmSaveManagerTask
    extends Object
    Task to save a resource. Contains all the necessary information about the resource to perform save operation.
    See Also:
    IBmSaveManager
    • Constructor Detail

      • BmSaveManagerTask

        public BmSaveManagerTask​(int resourceId,
                                 String topObjectFqn,
                                 org.eclipse.emf.ecore.EClass topObjectEClass,
                                 IBmObject topObject,
                                 BmLongHashSet affectedObjectIds,
                                 boolean detached)
        Constructs a new instance with the specified parameters.
        Parameters:
        resourceId - The ID of the resource.
        topObjectFqn - The FQN of the corresponding top object. May not be null.
        topObjectEClass - The eclass of the corresponding top object. May not be null.
        topObject - The corresponding top object. May not be null if the object is not detached.
        affectedObjectIds - A collection of the modified object IDs. May not be null.
        detached - The flag showing whether the resource has been detached.
    • Method Detail

      • getResourceId

        public int getResourceId()
        Gets the ID of the resource.
        Returns:
        the ID of the resource.
      • getTopObjectFqn

        public String getTopObjectFqn()
        Gets the FQN of the corresponding top object.
        Returns:
        the FQN, never null.
      • getTopObjectEClass

        public org.eclipse.emf.ecore.EClass getTopObjectEClass()
        Gets the eclass of the corresponding top object
        Returns:
        the eclass, never null.
      • getTopObject

        public IBmObject getTopObject()
        Gets the corresponding top object.
        Returns:
        the top object, never null.
      • getAffectedObjectIds

        public BmLongHashSet getAffectedObjectIds()
        Gets the modified object IDs.
        Returns:
        a collection of the modified object IDs, never null.
      • isDetached

        public boolean isDetached()
        Checks if the resource has been detached.
        Returns:
        true if the resource has been detached, false otherwise.