Package com.e1c.g5.v8.dt.model.updater
Class ModelUpdaterContext
java.lang.Object
com._1c.g5.v8.derived.context.BasicObjectContext
com._1c.g5.v8.derived.context.PartBasedObjectContext
com.e1c.g5.v8.dt.model.updater.ModelUpdaterContext
- All Implemented Interfaces:
IObjectDerivedDataContext
,IPartBasedObjectContext
DD context for automatic model updater subsystem
-
Constructor Summary
ConstructorsConstructorDescriptionModelUpdaterContext
(long bmObjectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause) Constructs an instance of a context -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeature
(org.eclipse.emf.ecore.EStructuralFeature feature) Add a single feature to a contextprotected void
Cleans extended data of the context on full rebuild to free the resourcesprotected void
copyExtendedDataForContainments
(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext) Copies extended data of the containment contextprotected PartBasedContainmentContext
createPartBasedContainmentContext
(long bmObjectId, org.eclipse.emf.ecore.EClass eClass) Creates a corresponding part-based containment context.Set<org.eclipse.emf.ecore.EStructuralFeature>
void
loadData
(IContextDataInput dataInput) Loads previously stored data into this contextprotected boolean
mergeContainmentExtendedDataUpdates
(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext) Merges the containment context extended dataprotected boolean
Merges extended data updates.void
saveData
(IContextDataOutput dataOutput) Saves data of this context to an external storageMethods inherited from class com._1c.g5.v8.derived.context.PartBasedObjectContext
addParts, addParts, getContainmentContext, getContainmentContext, getContainmentContexts, getParts, mergeUpdates, setFullRebuild
Methods inherited from class com._1c.g5.v8.derived.context.BasicObjectContext
getBmObjectId, getComputationCause, getEClass, getObjectId, getSegmentId, getTransactionHandle, getVersion, isFullRebuild, isInactive, setInactive, setTransactionHandle, setVersion
-
Constructor Details
-
ModelUpdaterContext
public ModelUpdaterContext(long bmObjectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause) Constructs an instance of a context- Parameters:
bmObjectId
- A target model object BM ideClass
- A target model objectEClass
. May not benull
segmentId
- A target identifier of a DD segment. May not benull
computationCause
- Computation cause. May benull
-
-
Method Details
-
addFeature
public void addFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Add a single feature to a context- Parameters:
feature
- A feature to add. May not benull
-
getFeatures
- Returns:
- the features
-
clearExtendedData
protected void clearExtendedData()Description copied from class:PartBasedObjectContext
Cleans extended data of the context on full rebuild to free the resources- Overrides:
clearExtendedData
in classPartBasedObjectContext
-
copyExtendedDataForContainments
protected void copyExtendedDataForContainments(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext) Description copied from class:PartBasedObjectContext
Copies extended data of the containment context- Overrides:
copyExtendedDataForContainments
in classPartBasedObjectContext
- Parameters:
sourceContext
- Source context to copy data from. May not benull
destinationContext
- Destination context to copy data to. May not benull
-
createPartBasedContainmentContext
protected PartBasedContainmentContext createPartBasedContainmentContext(long bmObjectId, org.eclipse.emf.ecore.EClass eClass) Description copied from class:PartBasedObjectContext
Creates a corresponding part-based containment context. May be used to customize containment contexts in client applications- Overrides:
createPartBasedContainmentContext
in classPartBasedObjectContext
- Parameters:
bmObjectId
- The BM object identifier to get context for.- Returns:
- The context. May not be
null
-
mergeContainmentExtendedDataUpdates
protected boolean mergeContainmentExtendedDataUpdates(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext) Description copied from class:PartBasedObjectContext
Merges the containment context extended data- Overrides:
mergeContainmentExtendedDataUpdates
in classPartBasedObjectContext
- Parameters:
sourceContext
- The source containment context. May not benull
destinationContext
- The destination containment context. May not benull
- Returns:
- True if there are changes in the destination context as a result of merge
-
mergeExtendedDataUpdates
Description copied from class:PartBasedObjectContext
Merges extended data updates.- Overrides:
mergeExtendedDataUpdates
in classPartBasedObjectContext
- Parameters:
context
- The context to get data from. May not benull
- Returns:
- True if changes were made during the merge of the extended updates
-
saveData
Description copied from interface:IObjectDerivedDataContext
Saves data of this context to an external storage- Specified by:
saveData
in interfaceIObjectDerivedDataContext
- Overrides:
saveData
in classPartBasedObjectContext
- Parameters:
dataOutput
- The output stream to write data into. May not benull
- Throws:
IOException
-
loadData
Description copied from interface:IObjectDerivedDataContext
Loads previously stored data into this context- Specified by:
loadData
in interfaceIObjectDerivedDataContext
- Overrides:
loadData
in classPartBasedObjectContext
- Throws:
IOException
-