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 TypeMethodDescriptionvoidaddFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Add a single feature to a contextprotected voidCleans 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>voidloadData(IContextDataInput dataInput) Loads previously stored data into this contextprotected booleanmergeContainmentExtendedDataUpdates(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext) Merges the containment context extended dataprotected booleanMerges extended data updates.voidsaveData(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, setFullRebuildMethods 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 benullsegmentId- A target identifier of a DD segment. May not benullcomputationCause- 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: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
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
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
Description copied from interface:IObjectDerivedDataContextLoads previously stored data into this context- Specified by:
loadDatain interfaceIObjectDerivedDataContext- Overrides:
loadDatain classPartBasedObjectContext- Throws:
IOException
-