Package com._1c.g5.v8.bm.integration
Class BmBasicTask2Collection<P1,P2>
java.lang.Object
com._1c.g5.v8.bm.integration.AbstractBmTask<org.eclipse.core.runtime.IStatus>
com._1c.g5.v8.bm.integration.BmBasicTask
com._1c.g5.v8.bm.integration.BmBasicTask2Collection<P1,P2>
- All Implemented Interfaces:
IBmTask<org.eclipse.core.runtime.IStatus>
- Direct Known Subclasses:
AbstractMdObjectCollectionTask
Base class for task with useful operation with collections.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBmBasicTask2Collection(String name, P1 object, Collection<P2> objects) Instansiates a newIBmTaskwith the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatusPerform task execution.abstract org.eclipse.core.runtime.IStatusexecute(P1 object, Collection<P2> objects, org.eclipse.core.runtime.IProgressMonitor monitor) Executes task with the given arguments.Methods inherited from class com._1c.g5.v8.bm.integration.BmBasicTask
execute, getTransactionMethods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
Constructor Details
-
BmBasicTask2Collection
Instansiates a newIBmTaskwith the given arguments.- Parameters:
name- is the task nameobject- is the objectobjects- is the collection of objects
-
-
Method Details
-
execute
public org.eclipse.core.runtime.IStatus execute(List<IBmObject> objects, org.eclipse.core.runtime.IProgressMonitor monitor) Perform task execution. Be ware new objects will not be attached to session on execution.- Specified by:
executein classBmBasicTask
-
execute
public abstract org.eclipse.core.runtime.IStatus execute(P1 object, Collection<P2> objects, org.eclipse.core.runtime.IProgressMonitor monitor) Executes task with the given arguments. Override in successors.- Parameters:
object- is the objectobjects- is the collection of objectsmonitor- is the progress monitor- Returns:
- the status of the task
-