Package com._1c.g5.v8.bm.integration
Class BmSaveManagerTask
- java.lang.Object
-
- com._1c.g5.v8.bm.integration.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 Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BmLongHashSet
getAffectedObjectIds()
Gets the modified object IDs.int
getResourceId()
Gets the ID of the resource.IBmObject
getTopObject()
Gets the corresponding top object.org.eclipse.emf.ecore.EClass
getTopObjectEClass()
Gets the eclass of the corresponding top objectString
getTopObjectFqn()
Gets the FQN of the corresponding top object.boolean
isDetached()
Checks if the resource has been detached.
-
-
-
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 benull
.topObjectEClass
- The eclass of the corresponding top object. May not benull
.topObject
- The corresponding top object. May not benull
if the object is not detached.affectedObjectIds
- A collection of the modified object IDs. May not benull
.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.
-
-