Package org.eclipse.emf.cdo.spi.server

## Interface InternalCommitContext

- All Superinterfaces:
    `CDORevisionProvider`, `CDOTimeProvider`, `IStoreAccessor.CommitContext`

      public interface InternalCommitContext
      extends IStoreAccessor.CommitContext, CDOTimeProvider

  If the meaning of this type isn't clear, there really should be more of a description here...
  Since:
    3.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 Summary

    - ### Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.IStoreAccessor.CommitContext

      `IStoreAccessor.CommitContext.ModificationContext`

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static org.eclipse.net4j.util.om.monitor.ProgressDistributable<InternalCommitContext>[]` | `OPS` |

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `addIDMapping​(CDOID oldID, CDOID newID)` |
    `void` | `applyIDMappings​(org.eclipse.net4j.util.om.monitor.OMMonitor monitor)` |
    `void` | `commit​(org.eclipse.net4j.util.om.monitor.OMMonitor monitor)` |
    `IStoreAccessor` | `getAccessor()` |
    `InternalCDORevision[]` | `getDetachedRevisions()` |
    `InternalCDORevision[]` | `getDetachedRevisions​(boolean check)` |
    `long` | `getTimeStamp()` |
    `InternalTransaction` | `getTransaction()` | Returns the transactional view (`ITransaction`) which is the scope of the commit operation represented by this `CommitContext`.
    `boolean` | `isTreeRestructuring()` |
    `void` | `postCommit​(boolean success)` |
    `void` | `preWrite()` |
    `void` | `rollback​(java.lang.String message)` |
    `void` | `setAutoReleaseLocksEnabled​(boolean on)` | Deprecated. As of 4.5 no longer supported.
    `void` | `setClearResourcePathCache​(boolean clearResourcePathCache)` |
    `void` | `setCommitComment​(java.lang.String comment)` |
    `void` | `setCommitMergeSource​(CDOBranchPoint mergeSource)` |
    `void` | `setCommitNumber​(int commitNumber)` |
    `void` | `setDetachedObjects​(CDOID[] detachedObjects)` |
    `void` | `setDetachedObjectTypes​(java.util.Map<CDOID,​EClass> detachedObjectTypes)` |
    `void` | `setDetachedObjectVersions​(CDOBranchVersion[] detachedObjectVersions)` |
    `void` | `setDirtyObjectDeltas​(InternalCDORevisionDelta[] dirtyObjectDeltas)` |
    `void` | `setIDsToUnlock​(CDOID[] idsToUnlock)` |
    `void` | `setLastTreeRestructuringCommit​(long lastTreeRestructuringCommit)` |
    `void` | `setLastUpdateTime​(long lastUpdateTime)` |
    `void` | `setLobs​(org.eclipse.net4j.util.io.ExtendedDataInputStream in)` |
    `void` | `setLocksOnNewObjects​(CDOLockState[] locksOnNewObjects)` |
    `void` | `setNewObjects​(InternalCDORevision[] newObjects)` |
    `void` | `setNewPackageUnits​(InternalCDOPackageUnit[] newPackageUnits)` |
    `void` | `setSecurityImpact​(byte securityImpact, java.util.Set<? extends java.lang.Object> impactedRules)` |
    `void` | `setUsingEcore​(boolean usingEcore)` |
    `void` | `setUsingEtypes​(boolean usingEtypes)` |
    `void` | `write​(org.eclipse.net4j.util.om.monitor.OMMonitor monitor)` |

    - ### Methods inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisionProvider

      `getRevision`

    - ### Methods inherited from interface org.eclipse.emf.cdo.server.IStoreAccessor.CommitContext

      `createCommitInfo, getBranchPoint, getCommitComment, getCommitMergeSource, getData, getDetachedObjects, getDetachedObjectTypes, getDetachedObjectVersions, getDirtyObjectDeltas, getDirtyObjects, getIDMappings, getIDsToUnlock, getLastUpdateTime, getLobs, getLocksOnNewObjects, getNewObjects, getNewPackageUnits, getNewRevisions, getOldRevisions, getOriginalCommmitData, getPackageRegistry, getPostCommmitLockStates, getPreviousTimeStamp, getRollbackMessage, getRollbackReason, getSecurityImpact, getUserID, getXRefs, isAutoReleaseLocksEnabled, isClearResourcePathCache, isUsingEcore, isUsingEtypes, modify, setData`

- - ### Field Detail

    - #### OPS

          static final org.eclipse.net4j.util.om.monitor.ProgressDistributable<InternalCommitContext>[] OPS

  - ### Method Detail

    - #### getTransaction

          InternalTransaction getTransaction()

      Description copied from interface: `IStoreAccessor.CommitContext`
      Returns the transactional view (`ITransaction`) which is the scope of the commit operation represented by this `CommitContext`.
      Specified by:
        `getTransaction` in interface `IStoreAccessor.CommitContext`

    - #### getAccessor

          IStoreAccessor getAccessor()

      Since:
        4.5

    - #### getTimeStamp

          long getTimeStamp()

      Specified by:
        `getTimeStamp` in interface `CDOTimeProvider`
      Since:
        4.2

    - #### isTreeRestructuring

          boolean isTreeRestructuring()

      Since:
        4.5

    - #### setLastTreeRestructuringCommit

          void setLastTreeRestructuringCommit​(long lastTreeRestructuringCommit)

      Since:
        4.2

    - #### preWrite

          void preWrite()

    - #### write

          void write​(org.eclipse.net4j.util.om.monitor.OMMonitor monitor)

    - #### commit

          void commit​(org.eclipse.net4j.util.om.monitor.OMMonitor monitor)

    - #### rollback

          void rollback​(java.lang.String message)

    - #### postCommit

          void postCommit​(boolean success)

    - #### getDetachedRevisions

          InternalCDORevision[] getDetachedRevisions()

      Since:
        4.0

    - #### getDetachedRevisions

          InternalCDORevision[] getDetachedRevisions​(boolean check)

      Since:
        4.6

    - #### setClearResourcePathCache

          void setClearResourcePathCache​(boolean clearResourcePathCache)

      Since:
        4.2

    - #### setUsingEcore

          void setUsingEcore​(boolean usingEcore)

      Since:
        4.2

    - #### setUsingEtypes

          void setUsingEtypes​(boolean usingEtypes)

      Since:
        4.2

    - #### setNewPackageUnits

          void setNewPackageUnits​(InternalCDOPackageUnit[] newPackageUnits)

    - #### setNewObjects

          void setNewObjects​(InternalCDORevision[] newObjects)

    - #### setDirtyObjectDeltas

          void setDirtyObjectDeltas​(InternalCDORevisionDelta[] dirtyObjectDeltas)

    - #### setDetachedObjects

          void setDetachedObjects​(CDOID[] detachedObjects)

    - #### setDetachedObjectTypes

          void setDetachedObjectTypes​(java.util.Map<CDOID,​EClass> detachedObjectTypes)

      Since:
        4.0

    - #### setDetachedObjectVersions

          void setDetachedObjectVersions​(CDOBranchVersion[] detachedObjectVersions)

      Since:
        4.2

    - #### setLastUpdateTime

          void setLastUpdateTime​(long lastUpdateTime)

      Since:
        4.2

    - #### setAutoReleaseLocksEnabled

          @Deprecated
          void setAutoReleaseLocksEnabled​(boolean on)

      Deprecated.
      As of 4.5 no longer supported. See `setIDsToUnlock(CDOID[])`.

    - #### setLocksOnNewObjects

          void setLocksOnNewObjects​(CDOLockState[] locksOnNewObjects)

      Since:
        4.1

    - #### setIDsToUnlock

          void setIDsToUnlock​(CDOID[] idsToUnlock)

      Since:
        4.6

    - #### setCommitNumber

          void setCommitNumber​(int commitNumber)

      Since:
        4.5

    - #### setCommitComment

          void setCommitComment​(java.lang.String comment)

    - #### setCommitMergeSource

          void setCommitMergeSource​(CDOBranchPoint mergeSource)

      Since:
        4.6

    - #### setLobs

          void setLobs​(org.eclipse.net4j.util.io.ExtendedDataInputStream in)

      Since:
        4.0

    - #### addIDMapping

          void addIDMapping​(CDOID oldID,
                            CDOID newID)

    - #### applyIDMappings

          void applyIDMappings​(org.eclipse.net4j.util.om.monitor.OMMonitor monitor)

    - #### setSecurityImpact

          void setSecurityImpact​(byte securityImpact,
                                 java.util.Set<? extends java.lang.Object> impactedRules)

      Since:
        4.3