Package org.eclipse.emf.cdo.server
Interface IStoreAccessor.CommitContext
- 
- All Superinterfaces:
- CDORevisionProvider
 - All Known Subinterfaces:
- InternalCommitContext
 - Enclosing interface:
- IStoreAccessor
 
 public static interface IStoreAccessor.CommitContext extends CDORevisionProvider Represents the state of a single, logical commit operation which is driven through multiple calls to several methods on theIStoreAccessorAPI. All these method calls get the sameCommitContextinstance passed so that the implementor of theIStoreAccessorcan track the state and progress of the commit operation.- Since:
- 2.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceIStoreAccessor.CommitContext.ModificationContextA data and result context for the modifications inmodify(Consumer).
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CDOCommitInfocreateCommitInfo()CDOBranchPointgetBranchPoint()Returns the branch ID and timestamp of this commit operation.java.lang.StringgetCommitComment()CDOBranchPointgetCommitMergeSource()<T> TgetData(java.lang.Object key)CDOID[]getDetachedObjects()Returns an array of the removed object that are part of the commit operation represented by thisCommitContext.java.util.Map<CDOID,org.eclipse.emf.ecore.EClass>getDetachedObjectTypes()Returns a map with anEClassvalue perCDOIDtype.CDOBranchVersion[]getDetachedObjectVersions()InternalCDORevisionDelta[]getDirtyObjectDeltas()Returns an array of the dirty object deltas that are part of the commit operation represented by thisCommitContext.InternalCDORevision[]getDirtyObjects()Returns an array of the dirty objects that are part of the commit operation represented by thisCommitContext.java.util.Map<CDOID,CDOID>getIDMappings()Returns an unmodifiable map from all temporary IDs to their persistent counter parts.CDOID[]getIDsToUnlock()longgetLastUpdateTime()org.eclipse.net4j.util.io.ExtendedDataInputStreamgetLobs()Returns a stream that alllobscan be read from.CDOLockState[]getLocksOnNewObjects()Returns an array of the locks on the new objects that are part of the commit operation represented by thisCommitContext.InternalCDORevision[]getNewObjects()Returns an array of the new objects that are part of the commit operation represented by thisCommitContext.InternalCDOPackageUnit[]getNewPackageUnits()Returns an array of the new package units that are part of the commit operation represented by thisCommitContext.java.util.Map<CDOID,InternalCDORevision>getNewRevisions()java.util.Map<CDOID,InternalCDORevision>getOldRevisions()CDOProtocol.CommitDatagetOriginalCommmitData()InternalCDOPackageRegistrygetPackageRegistry()Returns the temporary, transactional package manager associated with the commit operation represented by thisCommitContext.java.util.List<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<java.lang.Object,IView>>getPostCommmitLockStates()longgetPreviousTimeStamp()java.lang.StringgetRollbackMessage()bytegetRollbackReason()bytegetSecurityImpact()ITransactiongetTransaction()Returns the transactional view (ITransaction) which is the scope of the commit operation represented by thisCommitContext.java.lang.StringgetUserID()java.util.List<CDOIDReference>getXRefs()booleanisAutoReleaseLocksEnabled()Deprecated.As of 4.5 no longer supported.booleanisClearResourcePathCache()booleanisUsingEcore()booleanisUsingEtypes()voidmodify(java.util.function.Consumer<IStoreAccessor.CommitContext.ModificationContext> modifier)<T> TsetData(java.lang.Object key, T data)- 
Methods inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisionProvidergetRevision
 
- 
 
- 
- 
- 
Method Detail- 
getTransactionITransaction getTransaction() Returns the transactional view (ITransaction) which is the scope of the commit operation represented by thisCommitContext.- Since:
- 4.0
 
 - 
getBranchPointCDOBranchPoint getBranchPoint() Returns the branch ID and timestamp of this commit operation.- Since:
- 3.0
 
 - 
getPreviousTimeStamplong getPreviousTimeStamp() - Since:
- 4.0
 
 - 
getUserIDjava.lang.String getUserID() - Since:
- 3.0
 
 - 
getCommitCommentjava.lang.String getCommitComment() - Since:
- 3.0
 
 - 
getCommitMergeSourceCDOBranchPoint getCommitMergeSource() - Since:
- 4.6
 
 - 
getLastUpdateTimelong getLastUpdateTime() - Since:
- 4.2
 
 - 
getPackageRegistryInternalCDOPackageRegistry getPackageRegistry() Returns the temporary, transactional package manager associated with the commit operation represented by thisCommitContext. In addition to the packages registered with the session this package manager also contains the new packages that are part of this commit operation.
 - 
isClearResourcePathCacheboolean isClearResourcePathCache() - Since:
- 4.2
 
 - 
getSecurityImpactbyte getSecurityImpact() - Since:
- 4.3
 
 - 
isUsingEcoreboolean isUsingEcore() - Since:
- 4.2
 
 - 
isUsingEtypesboolean isUsingEtypes() - Since:
- 4.2
 
 - 
getNewPackageUnitsInternalCDOPackageUnit[] getNewPackageUnits() Returns an array of the new package units that are part of the commit operation represented by thisCommitContext.
 - 
getNewObjectsInternalCDORevision[] getNewObjects() Returns an array of the new objects that are part of the commit operation represented by thisCommitContext.
 - 
getDirtyObjectsInternalCDORevision[] getDirtyObjects() Returns an array of the dirty objects that are part of the commit operation represented by thisCommitContext.
 - 
getDirtyObjectDeltasInternalCDORevisionDelta[] getDirtyObjectDeltas() Returns an array of the dirty object deltas that are part of the commit operation represented by thisCommitContext.
 - 
getDetachedObjectsCDOID[] getDetachedObjects() Returns an array of the removed object that are part of the commit operation represented by thisCommitContext.- Since:
- 2.0
 
 - 
getDetachedObjectTypesjava.util.Map<CDOID,org.eclipse.emf.ecore.EClass> getDetachedObjectTypes() Returns a map with anEClassvalue perCDOIDtype.- Since:
- 4.0
 
 - 
getDetachedObjectVersionsCDOBranchVersion[] getDetachedObjectVersions() - Since:
- 4.2
 
 - 
getOldRevisionsjava.util.Map<CDOID,InternalCDORevision> getOldRevisions() - Since:
- 4.6
 
 - 
getNewRevisionsjava.util.Map<CDOID,InternalCDORevision> getNewRevisions() - Since:
- 4.6
 
 - 
getOriginalCommmitDataCDOProtocol.CommitData getOriginalCommmitData() - Since:
- 4.8
 
 - 
getLobsorg.eclipse.net4j.util.io.ExtendedDataInputStream getLobs() Returns a stream that alllobscan be read from. The format of the data delivered through the stream is:-  int: the number of lobs to be read from the stream.
- The following data can be read from the stream in a loop with one iteration per lob in the stream:
 - Since:
- 4.0
 
-  
 - 
isAutoReleaseLocksEnabled@Deprecated boolean isAutoReleaseLocksEnabled() Deprecated.As of 4.5 no longer supported. SeegetIDsToUnlock().- Since:
- 3.0
 
 - 
getLocksOnNewObjectsCDOLockState[] getLocksOnNewObjects() Returns an array of the locks on the new objects that are part of the commit operation represented by thisCommitContext.- Since:
- 4.1
 
 - 
getIDsToUnlockCDOID[] getIDsToUnlock() - Since:
- 4.6
 
 - 
getIDMappingsjava.util.Map<CDOID,CDOID> getIDMappings() Returns an unmodifiable map from all temporary IDs to their persistent counter parts.
 - 
createCommitInfoCDOCommitInfo createCommitInfo() - Since:
- 4.0
 
 - 
getRollbackReasonbyte getRollbackReason() - Since:
- 4.2
- See Also:
- CDOProtocolConstants
 
 - 
getRollbackMessagejava.lang.String getRollbackMessage() - Since:
- 3.0
 
 - 
getXRefsjava.util.List<CDOIDReference> getXRefs() - Since:
- 4.0
 
 - 
getPostCommmitLockStatesjava.util.List<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<java.lang.Object,IView>> getPostCommmitLockStates() - Since:
- 4.1
 
 - 
getData<T> T getData(java.lang.Object key) - Since:
- 4.3
 
 - 
setData<T> T setData(java.lang.Object key, T data)- Since:
- 4.3
 
 - 
modifyvoid modify(java.util.function.Consumer<IStoreAccessor.CommitContext.ModificationContext> modifier) - Since:
- 4.10
 
 
- 
 
-