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 protectedBasicDbObjectBasedOnTask(BasicDbObject object, Collection<BasicDbObject> objects, String template)Creates a newIBmTasksuccessor instance
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicDbObjectBasedOnTaskcreateBasedOnAddTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)Creates a newIBmTaskthat adds the givenBasicDbObjects to the based on collection.static BasicDbObjectBasedOnTaskcreateBasedOnRemoveTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)Creates a newIBmTaskthat removes the givenBasicDbObjects from the based on collection.static BasicDbObjectBasedOnTaskcreateBasisForAddTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)Creates a newIBmTaskthat adds the givenBasicDbObjectto each element of the collection.static BasicDbObjectBasedOnTaskcreateBasisForRemoveTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)Creates a newIBmTaskthat removes the givenBasicDbObjectfrom 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 newIBmTasksuccessor instance- Parameters:
object- is theBasicDbObjectobjects- is the collection ofBasicDbObjectstemplate- is template message for task naming purposes
-
-
Method Detail
-
createBasedOnAddTask
public static BasicDbObjectBasedOnTask createBasedOnAddTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTaskthat adds the givenBasicDbObjects to the based on collection.- Parameters:
dbObject- is theBasicDbObjectdbObjects- is the collection ofBasicDbObject- Returns:
- the created task
-
createBasisForAddTask
public static BasicDbObjectBasedOnTask createBasisForAddTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTaskthat adds the givenBasicDbObjectto each element of the collection.- Parameters:
dbObject- is theBasicDbObjectdbObjects- is the collection ofBasicDbObject- Returns:
- the created task
-
createBasedOnRemoveTask
public static BasicDbObjectBasedOnTask createBasedOnRemoveTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTaskthat removes the givenBasicDbObjects from the based on collection.- Parameters:
dbObject- is theBasicDbObjectthat is based on the specified objects indbObjectsbased, cannot benulldbObjects- is the collection ofBasicDbObject, cannot benullor empty- Returns:
- the created task, never
null
-
createBasisForRemoveTask
public static BasicDbObjectBasedOnTask createBasisForRemoveTask(BasicDbObject dbObject, Collection<BasicDbObject> dbObjects)
Creates a newIBmTaskthat removes the givenBasicDbObjectfrom the each element of the collection.- Parameters:
dbObject- is theBasicDbObjectthat is basis for the specified objects indbObjects, cannot benulldbObjects- is the collection ofBasicDbObject, cannot benullor empty- Returns:
- the created task, never
null
-
-