Package com._1c.g5.v8.dt.md.api
Class BasicDbObjectBasedOnTask
- 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>
-
- com._1c.g5.v8.dt.md.api.AbstractMdObjectCollectionTask<BasicDbObject,BasicDbObject>
-
- com._1c.g5.v8.dt.md.api.BasicDbObjectBasedOnTask
-
- All Implemented Interfaces:
IBmTask<org.eclipse.core.runtime.IStatus>
public abstract class BasicDbObjectBasedOnTask extends AbstractMdObjectCollectionTask<BasicDbObject,BasicDbObject>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasicDbObjectBasedOnTask(BasicDbObject object, Collection<BasicDbObject> objects, String template)
Creates a newIBmTask
successor instance
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicDbObjectBasedOnTask
createBasedOnAddTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTask
that adds the givenBasicDbObject
s to the based on collection.static BasicDbObjectBasedOnTask
createBasedOnRemoveTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTask
that removes the givenBasicDbObject
s from the based on collection.static BasicDbObjectBasedOnTask
createBasisForAddTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTask
that adds the givenBasicDbObject
to each element of the collection.static BasicDbObjectBasedOnTask
createBasisForRemoveTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTask
that removes the givenBasicDbObject
from the each element of the collection.-
Methods inherited from class com._1c.g5.v8.dt.md.api.AbstractMdObjectCollectionTask
doExecute, execute, getName
-
Methods inherited from class com._1c.g5.v8.bm.integration.BmBasicTask2Collection
execute
-
Methods inherited from class com._1c.g5.v8.bm.integration.BmBasicTask
execute, getTransaction
-
Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
-
-
-
Constructor Detail
-
BasicDbObjectBasedOnTask
protected BasicDbObjectBasedOnTask(BasicDbObject object, Collection<BasicDbObject> objects, String template)
Creates a newIBmTask
successor instance- Parameters:
object
- is theBasicDbObject
objects
- is the collection ofBasicDbObject
stemplate
- is template message for task naming purposes
-
-
Method Detail
-
createBasedOnAddTask
public static BasicDbObjectBasedOnTask createBasedOnAddTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTask
that adds the givenBasicDbObject
s to the based on collection.- Parameters:
dbObject
- is theBasicDbObject
dbObjects
- is the collection ofBasicDbObject
- Returns:
- the created task
-
createBasisForAddTask
public static BasicDbObjectBasedOnTask createBasisForAddTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTask
that adds the givenBasicDbObject
to each element of the collection.- Parameters:
dbObject
- is theBasicDbObject
dbObjects
- is the collection ofBasicDbObject
- Returns:
- the created task
-
createBasedOnRemoveTask
public static BasicDbObjectBasedOnTask createBasedOnRemoveTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTask
that removes the givenBasicDbObject
s from the based on collection.- Parameters:
dbObject
- is theBasicDbObject
that is based on the specified objects indbObjects
based, cannot benull
dbObjects
- is the collection ofBasicDbObject
, cannot benull
or empty- Returns:
- the created task, never
null
-
createBasisForRemoveTask
public static BasicDbObjectBasedOnTask createBasisForRemoveTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTask
that removes the givenBasicDbObject
from the each element of the collection.- Parameters:
dbObject
- is theBasicDbObject
that is basis for the specified objects indbObjects
, cannot benull
dbObjects
- is the collection ofBasicDbObject
, cannot benull
or empty- Returns:
- the created task, never
null
-
-