Class ModelCheckObjectContext
java.lang.Object
com._1c.g5.v8.derived.context.BasicObjectContext
com.e1c.g5.v8.dt.internal.check.context.ModelCheckObjectContext
- All Implemented Interfaces:
IObjectDerivedDataContext
Specific DD context implementation for checkIds validation stage. Allows arranging of arbitrary check set for
a single model object.
-
Constructor Summary
ConstructorsConstructorDescriptionModelCheckObjectContext
(long bmObjectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause) Constructs a new instance of the context -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a check to the contextvoid
addCheckIds
(Set<String> checkIds) Adds multiple checks to this check.Gets an additional context map.Gets the set of check id's being collected within this context.getContainmentContext
(long bmObjectId) Gets context for the containment object.getContainmentContext
(IBmObject bmObject) Gets context for the containment object.Gets the collection of containment contexts being associated with this context.Gets an associated full rebuild check filter for the direct definition of a specific checks that should be scheduled during the full rebuild process.void
loadData
(IContextDataInput dataInput) Loads previously stored data into this contextboolean
mergeUpdates
(IObjectDerivedDataContext context) Merges updates into the context.void
saveData
(IContextDataOutput dataOutput) Saves data of this context to an external storagevoid
setFullRebuild
(boolean fullRebuild) Sets/resets the full rebuild designator for the context object DD.Methods inherited from class com._1c.g5.v8.derived.context.BasicObjectContext
getBmObjectId, getComputationCause, getEClass, getObjectId, getSegmentId, getTransactionHandle, getVersion, isFullRebuild, isInactive, setInactive, setTransactionHandle, setVersion
-
Constructor Details
-
ModelCheckObjectContext
public ModelCheckObjectContext(long bmObjectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause) Constructs a new instance of the context- Parameters:
bmObjectId
- The identifier of the top BM object this context corresponds toeClass
- The EClass of the of the top BM object this context corresponds tosegmentId
- The identifier of DD segment this context belongs tocomputationCause
- The identifier of the sync. session
-
-
Method Details
-
addCheck
Adds a check to the context- Parameters:
checkId
- The identifier of the check to add. May not benull
-
addCheckIds
Adds multiple checks to this check.- Parameters:
checkIds
- The set of checks to schedule. May not benull
-
getCheckIds
Gets the set of check id's being collected within this context.- Returns:
- The set of check id's scheduled for the re-computation. May not be
null
-
getContainmentContext
Gets context for the containment object.- Parameters:
bmObject
- The object to get context for. May not benull
- Returns:
- The specific containment context. May not be
null
-
getContainmentContext
Gets context for the containment object.- Parameters:
bmObjectId
- The BM object identifier to get context for.- Returns:
- The specific containment context. May not be
null
-
getContainmentContexts
Gets the collection of containment contexts being associated with this context.- Returns:
- The collection of containment contexts. May not be
null
-
getFullRebuildCheckIdFilter
Gets an associated full rebuild check filter for the direct definition of a specific checks that should be scheduled during the full rebuild process. Used during the mass re-check operations only- Returns:
- The set check identifiers. May not be
null
-
getAdditionalContext
Gets an additional context map. Custom check context collectors are able to add specific context during the context collection phase- Returns:
- The additional context map, never
null
-
mergeUpdates
Description copied from interface:IObjectDerivedDataContext
Merges 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 benull
.
-
setFullRebuild
public void setFullRebuild(boolean fullRebuild) Description copied from interface:IObjectDerivedDataContext
Sets/resets the full rebuild designator for the context object DD.- Specified by:
setFullRebuild
in interfaceIObjectDerivedDataContext
- Overrides:
setFullRebuild
in classBasicObjectContext
- Parameters:
fullRebuild
- Full rebuild flag.
-
saveData
Description copied from interface:IObjectDerivedDataContext
Saves data of this context to an external storage- Parameters:
dataOutput
- The output stream to write data into. May not benull
- Throws:
IOException
-
loadData
Description copied from interface:IObjectDerivedDataContext
Loads previously stored data into this context- Throws:
IOException
-