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:
- ExtObjectUpdateContext,- PartBasedObjectContext
 
 public abstract class BasicObjectContext extends Object implements IObjectDerivedDataContext Basic implementation of the DD object context.
- 
- 
Constructor SummaryConstructors Constructor Description BasicObjectContext(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 longgetBmObjectId()Gets the identifier of the object the context belongs to.ObjectgetComputationCause()Gets the identifier of the session the context is being collected for.org.eclipse.emf.ecore.EClassgetEClass()Gets the EClass of the target object.ObjectgetObjectId()Gets the the object the context belongs to.StringgetSegmentId()Gets the derived data segment identifier this context is collected for.ObjectgetTransactionHandle()Gets the associated transaction handle (if any).longgetVersion()Gets the current version of the context.booleanisFullRebuild()Checks if the full rebuild mode is set for the object.voidsetFullRebuild(boolean fullRebuild)Sets/resets the full rebuild designator for the context object DD.voidsetTransactionHandle(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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com._1c.g5.v8.derived.context.IObjectDerivedDataContextloadData, mergeUpdates, saveData
 
- 
 
- 
- 
- 
Constructor Detail- 
BasicObjectContextpublic 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 be- null
- eClass- The EClass of the of the top BM object this context corresponds to. May not be- null
- segmentId- The identifier of DD segment this context belongs to. May not be- null
- computationCause- The identifier of the context collection session. May be- null
- baseVersion- The base version of the context for the operations of the context merge and conflict detection
 
 
- 
 - 
Method Detail- 
getBmObjectIdpublic long getBmObjectId() Description copied from interface:IObjectDerivedDataContextGets the identifier of the object the context belongs to.- Specified by:
- getBmObjectIdin interface- IObjectDerivedDataContext
- Returns:
- The identifier of the object.
 
 - 
getComputationCausepublic 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 interface- IObjectDerivedDataContext
- Returns:
- The identifier of the session.
 
 - 
getEClasspublic org.eclipse.emf.ecore.EClass getEClass() Description copied from interface:IObjectDerivedDataContextGets the EClass of the target object.- Specified by:
- getEClassin interface- IObjectDerivedDataContext
- Returns:
- The target object EClass.
 
 - 
getObjectIdpublic Object getObjectId() Description copied from interface:IObjectDerivedDataContextGets the the object the context belongs to.- Specified by:
- getObjectIdin interface- IObjectDerivedDataContext
- Returns:
- The object, never null
 
 - 
getSegmentIdpublic String getSegmentId() Description copied from interface:IObjectDerivedDataContextGets the derived data segment identifier this context is collected for.- Specified by:
- getSegmentIdin interface- IObjectDerivedDataContext
- Returns:
- The unique identifier of the DD segment.
 
 - 
getTransactionHandlepublic Object getTransactionHandle() Description copied from interface:IObjectDerivedDataContextGets the associated transaction handle (if any).- Specified by:
- getTransactionHandlein interface- IObjectDerivedDataContext
- Returns:
- The associated transaction handle (if any). nullotherwise.
 
 - 
getVersionpublic 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 interface- IObjectDerivedDataContext
- Returns:
- The version of the context.
 
 - 
isFullRebuildpublic boolean isFullRebuild() Description copied from interface:IObjectDerivedDataContextChecks if the full rebuild mode is set for the object.- Specified by:
- isFullRebuildin interface- IObjectDerivedDataContext
- Returns:
- True if the full rebuild is required for the given top object.
 
 - 
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
- Parameters:
- fullRebuild- Full rebuild flag.
 
 - 
setTransactionHandlepublic void setTransactionHandle(Object transactionHandle) Description copied from interface:IObjectDerivedDataContextSets the transaction handle for this context.- Specified by:
- setTransactionHandlein interface- IObjectDerivedDataContext
 
 - 
setVersionpublic 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 interface- IObjectDerivedDataContext
- Parameters:
- version- A version to set
 
 
- 
 
-