Class ExtObjectUpdateContext
- java.lang.Object
- 
- com._1c.g5.v8.derived.context.BasicObjectContext
- 
- com._1c.g5.v8.dt.md.extension.derived.ExtObjectUpdateContext
 
 
- 
- All Implemented Interfaces:
- IObjectDerivedDataContext
 
 public class ExtObjectUpdateContext extends BasicObjectContext Standard implementation of theExtObjectUpdateContextbased on the DD part concept. Each DD part corresponds to a single DD calculation procedure performed by a complex DD part computer.
- 
- 
Constructor SummaryConstructors Constructor Description ExtObjectUpdateContext(long bmObjectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause)Creates a new instance of the context.ExtObjectUpdateContext(Object objectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause)Creates a new instance of the context.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFeature(org.eclipse.emf.ecore.EStructuralFeature feature)Adds a changed feature to the context.voidaddFeatures(Collection<org.eclipse.emf.ecore.EStructuralFeature> features)Adds a collection of changed features to the contextExtObjectContainmentUpdateContextgetContainmentContext(long bmObjectId)Gets context for the containment object.ExtObjectContainmentUpdateContextgetContainmentContext(IBmObject bmObject)Gets context for the containment object.Collection<ExtObjectContainmentUpdateContext>getContainmentContexts()Gets the collection containment contexts associated with this context.Collection<org.eclipse.emf.ecore.EStructuralFeature>getFeatures()Gets the set of DD parts being collected within this context.voidloadData(IContextDataInput dataInput)Loads previously stored data into this contextbooleanmergeUpdates(IObjectDerivedDataContext context)Merges updates into the context.voidsaveData(IContextDataOutput dataOutput)Saves data of this context to an external storagevoidsetFullRebuild(boolean fullRebuild)Sets/resets the full rebuild designator for the context object DD.- 
Methods inherited from class com._1c.g5.v8.derived.context.BasicObjectContextgetBmObjectId, getComputationCause, getEClass, getObjectId, getSegmentId, getTransactionHandle, getVersion, isFullRebuild, setTransactionHandle, setVersion
 
- 
 
- 
- 
- 
Constructor Detail- 
ExtObjectUpdateContextpublic ExtObjectUpdateContext(long bmObjectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause)Creates a new instance of the context.- Parameters:
- bmObjectId- The identifier of the top BM object this context corresponds to
- eClass- The EClass of the of the top BM object this context corresponds to
- segmentId- The identifier of DD segment this context belongs to
- computationCause- The identifier of the sync. session
 
 - 
ExtObjectUpdateContextpublic ExtObjectUpdateContext(Object objectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause) Creates a new instance of the context.- Parameters:
- bmObjectId- The identifier of the top BM object this context corresponds to
- eClass- The EClass of the of the top BM object this context corresponds to
- segmentId- The identifier of DD segment this context belongs to
- computationCause- The identifier of the sync. session
- baseVersion- The base verison of the context
 
 
- 
 - 
Method Detail- 
addFeaturepublic void addFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Adds a changed feature to the context.- Parameters:
- feature- The featureset that is changed for this object
 
 - 
addFeaturespublic void addFeatures(Collection<org.eclipse.emf.ecore.EStructuralFeature> features) Adds a collection of changed features to the context- Parameters:
- features- The features to set. May not be- null
 
 - 
getContainmentContextpublic ExtObjectContainmentUpdateContext getContainmentContext(IBmObject bmObject) Gets context for the containment object.- Parameters:
- bmObject- The object to get context for.
- Returns:
- The specific containment context.
 
 - 
getContainmentContextpublic ExtObjectContainmentUpdateContext getContainmentContext(long bmObjectId) Gets context for the containment object.- Parameters:
- bmObjectId- The BM object identifier to get context for.
- Returns:
- The specific containment context.
 
 - 
getContainmentContextspublic Collection<ExtObjectContainmentUpdateContext> getContainmentContexts() Gets the collection containment contexts associated with this context.- Returns:
- The collection of containment contexts.
 
 - 
getFeaturespublic Collection<org.eclipse.emf.ecore.EStructuralFeature> getFeatures() Gets the set of DD parts being collected within this context.- Returns:
- The set of DD parts scheduled for the re-computation.
 
 - 
mergeUpdatespublic boolean mergeUpdates(IObjectDerivedDataContext context) Description copied from interface:IObjectDerivedDataContextMerges updates into the context. The base version of this context is being updated according to the verison of the provided context- Parameters:
- context- The source of updates. Cannot be- null.
 
 - 
setFullRebuildpublic void setFullRebuild(boolean fullRebuild) Description copied from interface:IObjectDerivedDataContextSets/resets the full rebuild designator for the context object DD.- Specified by:
- setFullRebuildin interface- IObjectDerivedDataContext
- Overrides:
- setFullRebuildin class- BasicObjectContext
- Parameters:
- fullRebuild- Full rebuild flag.
 
 - 
saveDatapublic void saveData(IContextDataOutput dataOutput) throws IOException Description copied from interface:IObjectDerivedDataContextSaves data of this context to an external storage- 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- Throws:
- IOException
 
 
- 
 
-