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 SummaryConstructors Constructor Description ModelUpdaterContext(long bmObjectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause)Constructs an instance of a context
 - 
Method SummaryAll 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.PartBasedObjectContextaddParts, addParts, getContainmentContext, getContainmentContext, getContainmentContexts, getParts, mergeUpdates, setFullRebuild
 - 
Methods inherited from class com._1c.g5.v8.derived.context.BasicObjectContextgetBmObjectId, getComputationCause, getEClass, getObjectId, getSegmentId, getTransactionHandle, getVersion, isFullRebuild, setTransactionHandle, setVersion
 
- 
 
- 
- 
- 
Constructor Detail- 
ModelUpdaterContextpublic 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 id
- eClass- A target model object- EClass. May not be- null
- segmentId- A target identifier of a DD segment. May not be- null
- computationCause- Computation cause. May be- null
 
 
- 
 - 
Method Detail- 
addFeaturepublic void addFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Add a single feature to a context- Parameters:
- feature- A feature to add. May not be- null
 
 - 
getFeaturespublic Set<org.eclipse.emf.ecore.EStructuralFeature> getFeatures() - Returns:
- the features
 
 - 
clearExtendedDataprotected void clearExtendedData() Description copied from class:PartBasedObjectContextCleans extended data of the context on full rebuild to free the resources- Overrides:
- clearExtendedDatain class- PartBasedObjectContext
 
 - 
copyExtendedDataForContainmentsprotected void copyExtendedDataForContainments(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext) Description copied from class:PartBasedObjectContextCopies extended data of the containment context- Overrides:
- copyExtendedDataForContainmentsin class- PartBasedObjectContext
- Parameters:
- sourceContext- Source context to copy data from. May not be- null
- destinationContext- Destination context to copy data to. May not be- null
 
 - 
createPartBasedContainmentContextprotected 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 class- PartBasedObjectContext
- Parameters:
- bmObjectId- The BM object identifier to get context for.
- Returns:
- The context. May not be null
 
 - 
mergeContainmentExtendedDataUpdatesprotected boolean mergeContainmentExtendedDataUpdates(PartBasedContainmentContext sourceContext, PartBasedContainmentContext destinationContext) Description copied from class:PartBasedObjectContextMerges the containment context extended data- Overrides:
- mergeContainmentExtendedDataUpdatesin class- PartBasedObjectContext
- Parameters:
- sourceContext- The source containment context. May not be- null
- destinationContext- The destination containment context. May not be- null
- Returns:
- True if there are changes in the destination context as a result of merge
 
 - 
mergeExtendedDataUpdatesprotected boolean mergeExtendedDataUpdates(IObjectDerivedDataContext context) Description copied from class:PartBasedObjectContextMerges extended data updates.- Overrides:
- mergeExtendedDataUpdatesin class- PartBasedObjectContext
- Parameters:
- context- The context to get data from. May not be- null
- Returns:
- True if changes were made during the merge of the extended updates
 
 - 
saveDatapublic void saveData(IContextDataOutput dataOutput) throws IOException Description copied from interface:IObjectDerivedDataContextSaves data of this context to an external storage- Specified by:
- saveDatain interface- IObjectDerivedDataContext
- Overrides:
- saveDatain class- PartBasedObjectContext
- Parameters:
- dataOutput- The output stream to write data into. May not be- null
- Throws:
- IOException
 
 - 
loadDatapublic void loadData(IContextDataInput dataInput) throws IOException Description copied from interface:IObjectDerivedDataContextLoads previously stored data into this context- Specified by:
- loadDatain interface- IObjectDerivedDataContext
- Overrides:
- loadDatain class- PartBasedObjectContext
- Throws:
- IOException
 
 
- 
 
-