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
-
-
Constructor Summary
Constructors Constructor Description ModelUpdaterContext(long bmObjectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, boolean removal, Object computationCause, long baseVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
TODO JavaDocprotected void
clearExtendedData()
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)
Creates a corresponding part-based containment context.protected PartBasedObjectContext
createTopObjectContextSnapshot()
Creates snapshot instance of the current context.Set<org.eclipse.emf.ecore.EStructuralFeature>
getFeatures()
protected boolean
mergeContainmentExtendedDataUpdates(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext)
Merges the containment context extended dataprotected boolean
mergeExtendedDataUpdates(IObjectDerivedDataContext context)
Merges extended data updates.-
Methods inherited from class com._1c.g5.v8.derived.context.PartBasedObjectContext
addParts, clear, getContainmentContext, getContainmentContext, getContainmentContexts, getParts, getSnapshot, mergeUpdates, setFullRebuild
-
Methods inherited from class com._1c.g5.v8.derived.context.BasicObjectContext
getBaseVersion, getBmObjectId, getComputationCause, getEClass, getObjectId, getSegmentId, getTransactionHandle, getVersion, isFullRebuild, isRemoval, setBaseVersion, setTransactionHandle
-
-
-
-
Method Detail
-
addFeature
public void addFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
TODO JavaDoc- Parameters:
feature
-
-
getFeatures
public Set<org.eclipse.emf.ecore.EStructuralFeature> 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)
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
-
createTopObjectContextSnapshot
protected PartBasedObjectContext createTopObjectContextSnapshot()
Description copied from class:PartBasedObjectContext
Creates snapshot instance of the current context. Do not create snapshot of containments within this method, only data of the top object context itself must be copied- Overrides:
createTopObjectContextSnapshot
in classPartBasedObjectContext
- Returns:
- The snapshot instance of the current 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
protected boolean mergeExtendedDataUpdates(IObjectDerivedDataContext context)
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
-
-