Package com._1c.g5.v8.derived.context
Class BasicObjectContext
java.lang.Object
com._1c.g5.v8.derived.context.BasicObjectContext
- All Implemented Interfaces:
IObjectDerivedDataContext
- Direct Known Subclasses:
AbstractExportContext,CmiDerivedDataContext,ExtObjectUpdateContext,ImportDataContext,LanguageCheckObjectContext,MarkerCleanerContext,MarkerReindexContext,ModelCheckObjectContext,NavigatorOrderContext,PartBasedObjectContext,TextSearchIndexingContext
Basic implementation of the DD object context.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicObjectContext(Object objectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause) Creates a new instance of the context -
Method Summary
Modifier and TypeMethodDescriptionlongGets the identifier of the object the context belongs to.Gets the identifier of the session the context is being collected for.org.eclipse.emf.ecore.EClassGets the EClass of the target object.Gets the the object the context belongs to.Gets the derived data segment identifier this context is collected for.Gets the associated transaction handle (if any).longGets the current version of the context.booleanChecks if the full rebuild mode is set for the object.booleanChecks the inactivity status of this contextvoidsetFullRebuild(boolean fullRebuild) Sets/resets the full rebuild designator for the context object DD.voidsetInactive(boolean inactive) Sets the inactive flag for a contextvoidsetTransactionHandle(Object transactionHandle) Sets the transaction handle for this context.voidsetVersion(long version) Sets an external version designator of the context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.derived.context.IObjectDerivedDataContext
loadData, mergeUpdates, saveData
-
Constructor Details
-
BasicObjectContext
public BasicObjectContext(Object objectId, org.eclipse.emf.ecore.EClass eClass, String segmentId, Object computationCause) Creates a new instance of the context- Parameters:
objectId- The identifier of the object (BM or language) this context corresponds to. May not benulleClass- The EClass of the of the top BM object this context corresponds to. May not benullsegmentId- The identifier of DD segment this context belongs to. May not benullcomputationCause- The identifier of the context collection session. May benullbaseVersion- The base version of the context for the operations of the context merge and conflict detection
-
-
Method Details
-
getBmObjectId
public long getBmObjectId()Description copied from interface:IObjectDerivedDataContextGets the identifier of the object the context belongs to.- Specified by:
getBmObjectIdin interfaceIObjectDerivedDataContext- Returns:
- The identifier of the object.
-
getComputationCause
Description copied from interface:IObjectDerivedDataContextGets the identifier of the session the context is being collected for. Used only for sync contexts.- Specified by:
getComputationCausein interfaceIObjectDerivedDataContext- Returns:
- The identifier of the session.
-
getEClass
public org.eclipse.emf.ecore.EClass getEClass()Description copied from interface:IObjectDerivedDataContextGets the EClass of the target object.- Specified by:
getEClassin interfaceIObjectDerivedDataContext- Returns:
- The target object EClass.
-
getObjectId
Description copied from interface:IObjectDerivedDataContextGets the the object the context belongs to.- Specified by:
getObjectIdin interfaceIObjectDerivedDataContext- Returns:
- The object, never
null
-
getSegmentId
Description copied from interface:IObjectDerivedDataContextGets the derived data segment identifier this context is collected for.- Specified by:
getSegmentIdin interfaceIObjectDerivedDataContext- Returns:
- The unique identifier of the DD segment.
-
getTransactionHandle
Description copied from interface:IObjectDerivedDataContextGets the associated transaction handle (if any).- Specified by:
getTransactionHandlein interfaceIObjectDerivedDataContext- Returns:
- The associated transaction handle (if any).
nullotherwise.
-
getVersion
public long getVersion()Description copied from interface:IObjectDerivedDataContextGets the current version of the context. The version is defined during the snapshotting of the context. The verison is used during the context merge process to update the base version.- Specified by:
getVersionin interfaceIObjectDerivedDataContext- Returns:
- The version of the context.
-
isFullRebuild
public boolean isFullRebuild()Description copied from interface:IObjectDerivedDataContextChecks if the full rebuild mode is set for the object.- Specified by:
isFullRebuildin interfaceIObjectDerivedDataContext- Returns:
- True if the full rebuild is required for the given top object.
-
setFullRebuild
public void setFullRebuild(boolean fullRebuild) Description copied from interface:IObjectDerivedDataContextSets/resets the full rebuild designator for the context object DD.- Specified by:
setFullRebuildin interfaceIObjectDerivedDataContext- Parameters:
fullRebuild- Full rebuild flag.
-
setTransactionHandle
Description copied from interface:IObjectDerivedDataContextSets the transaction handle for this context.- Specified by:
setTransactionHandlein interfaceIObjectDerivedDataContext
-
setVersion
public void setVersion(long version) Description copied from interface:IObjectDerivedDataContextSets an external version designator of the context. Called by the DD framework and should not be used by clients directly- Specified by:
setVersionin interfaceIObjectDerivedDataContext- Parameters:
version- A version to set
-
isInactive
public boolean isInactive()Description copied from interface:IObjectDerivedDataContextChecks the inactivity status of this context- Specified by:
isInactivein interfaceIObjectDerivedDataContext- Returns:
- True if context is inactive
-
setInactive
public void setInactive(boolean inactive) Description copied from interface:IObjectDerivedDataContextSets the inactive flag for a context- Specified by:
setInactivein interfaceIObjectDerivedDataContext- Parameters:
inactive- The inactivity state to set
-