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
public class ModelUpdaterContext extends PartBasedObjectContext
DD context for automatic model updater subsystem
-
-
Constructor Summary
Constructors Constructor Description ModelUpdaterContext(long bmObjectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause)Constructs an instance of a context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFeature(org.eclipse.emf.ecore.EStructuralFeature feature)Add a single feature to a contextprotected voidclearExtendedData()Cleans extended data of the context on full rebuild to free the resourcesprotected voidcopyExtendedDataForContainments(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext)Copies extended data of the containment contextprotected PartBasedContainmentContextcreatePartBasedContainmentContext(long bmObjectId, org.eclipse.emf.ecore.EClass eClass)Creates a corresponding part-based containment context.Set<org.eclipse.emf.ecore.EStructuralFeature>getFeatures()voidloadData(IContextDataInput dataInput)Loads previously stored data into this contextprotected booleanmergeContainmentExtendedDataUpdates(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext)Merges the containment context extended dataprotected booleanmergeExtendedDataUpdates(IObjectDerivedDataContext context)Merges extended data updates.voidsaveData(IContextDataOutput dataOutput)Saves data of this context to an external storage-
Methods 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, setTransactionHandle, setVersion
-
-
-
-
Constructor Detail
-
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 benullsegmentId- A target identifier of a DD segment. May not benullcomputationCause- Computation cause. May benull
-
-
Method Detail
-
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
public Set<org.eclipse.emf.ecore.EStructuralFeature> getFeatures()
- Returns:
- the features
-
clearExtendedData
protected void clearExtendedData()
Description copied from class:PartBasedObjectContextCleans extended data of the context on full rebuild to free the resources- Overrides:
clearExtendedDatain classPartBasedObjectContext
-
copyExtendedDataForContainments
protected void copyExtendedDataForContainments(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext)
Description copied from class:PartBasedObjectContextCopies extended data of the containment context- Overrides:
copyExtendedDataForContainmentsin classPartBasedObjectContext- Parameters:
sourceContext- Source context to copy data from. May not benulldestinationContext- 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:PartBasedObjectContextCreates a corresponding part-based containment context. May be used to customize containment contexts in client applications- Overrides:
createPartBasedContainmentContextin 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:PartBasedObjectContextMerges the containment context extended data- Overrides:
mergeContainmentExtendedDataUpdatesin classPartBasedObjectContext- Parameters:
sourceContext- The source containment context. May not benulldestinationContext- The destination containment context. May not benull- Returns:
- True if there are changes in the destination context as a result of merge
-
mergeExtendedDataUpdates
protected boolean mergeExtendedDataUpdates(IObjectDerivedDataContext context)
Description copied from class:PartBasedObjectContextMerges extended data updates.- Overrides:
mergeExtendedDataUpdatesin 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
public void saveData(IContextDataOutput dataOutput) throws IOException
Description copied from interface:IObjectDerivedDataContextSaves data of this context to an external storage- Specified by:
saveDatain interfaceIObjectDerivedDataContext- Overrides:
saveDatain classPartBasedObjectContext- Parameters:
dataOutput- The output stream to write data into. May not benull- Throws:
IOException
-
loadData
public void loadData(IContextDataInput dataInput) throws IOException
Description copied from interface:IObjectDerivedDataContextLoads previously stored data into this context- Specified by:
loadDatain interfaceIObjectDerivedDataContext- Overrides:
loadDatain classPartBasedObjectContext- Throws:
IOException
-
-