Package org.eclipse.emf.spi.cdo

## Interface InternalCDOView

- All Superinterfaces:
    `CDOBranchPoint`, `CDOBranchProvider`, `CDOCommitHistory.Provider<CDOObject,​CDOObjectHistory>`, `CDOCommonView`, `CDOIDProvider`, `CDORevisionProvider`, `CDOTimeProvider`, `CDOUpdatable`, `CDOView`, `org.eclipse.net4j.util.collection.Closeable`, `IAdaptable`, `org.eclipse.net4j.util.container.IContainer<CDOResourceNode>`, `org.eclipse.net4j.util.lifecycle.IDeactivateable`, `org.eclipse.net4j.util.concurrent.IExecutorServiceProvider`, `org.eclipse.net4j.util.lifecycle.ILifecycle`, `org.eclipse.net4j.util.event.INotifier`, `org.eclipse.net4j.util.options.IOptionsContainer`, `org.eclipse.net4j.util.properties.IPropertiesContainer`
  All Known Subinterfaces:
    `InternalCDOTransaction`

      public interface InternalCDOView
      extends CDOView, CDOIDProvider, org.eclipse.net4j.util.lifecycle.ILifecycle, org.eclipse.net4j.util.concurrent.IExecutorServiceProvider

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

    Nested Classes
    Modifier and Type | Interface | Description
    --- | --- | ---
    `static class` | `InternalCDOView.ViewAndState` | Optimizes the storage of `CDOObject.cdoView()` and `CDOObject.cdoState()`.
    `static class` | `InternalCDOView.ViewInvalidationData` | A data structure that holds all input values of `InternalCDOView#invalidate()`.

    - ### Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.view.CDOView

      `CDOView.Options`

    - ### Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer

      `org.eclipse.net4j.util.container.IContainer.Modifiable<E extends java.lang.Object>, org.eclipse.net4j.util.container.IContainer.Persistable<E extends java.lang.Object>, org.eclipse.net4j.util.container.IContainer.Persistence<E extends java.lang.Object>`

    - ### Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle

      `org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation`

    - ### Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier

      `org.eclipse.net4j.util.event.INotifier.INotifier2`

  - ### Field Summary

    - ### Fields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPoint

      `INVALID_DATE, UNSPECIFIED_DATE`

    - ### Fields inherited from interface org.eclipse.emf.cdo.common.id.CDOIDProvider

      `NOOP`

    - ### Fields inherited from interface org.eclipse.emf.cdo.util.CDOUpdatable

      `NO_TIMEOUT`

    - ### Fields inherited from interface org.eclipse.emf.cdo.view.CDOView

      `PROP_TIME_MACHINE_DISABLED`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `attachResource​(CDOResourceImpl resource)` |
    `void` | `clearResourcePathCacheIfNecessary​(CDORevisionDelta delta)` |
    `void` | `collectViewedRevisions​(java.util.Map<CDOID,​InternalCDORevision> revisions)` |
    `java.lang.Object` | `convertIDToObject​(java.lang.Object potentialID)` |
    `java.lang.Object` | `convertObjectToID​(java.lang.Object potentialObject)` |
    `java.lang.Object` | `convertObjectToID​(java.lang.Object potentialObject, boolean onlyPersistedID)` |
    `void` | `deregisterObject​(InternalCDOObject object)` |
    `CDOFeatureAnalyzer` | `getFeatureAnalyzer()` | Deprecated.
    `CDOLockOwner` | `getLockOwner()` |
    `CDOLockState[]` | `getLockStates​(java.util.Collection<CDOID> ids, boolean loadOnDemand)` |
    `java.util.Map<CDOID,​InternalCDOObject>` | `getObjects()` | Returns an unmodifiable map of the objects managed by this view.
    `java.util.List<InternalCDOObject>` | `getObjectsList()` |
    `java.lang.String` | `getRepositoryName()` |
    `CDOID` | `getResourceNodeID​(java.lang.String path)` |
    `InternalCDORevision` | `getRevision​(CDOID id, boolean loadOnDemand)` |
    `InternalCDOSession` | `getSession()` | Returns the `session` this view was opened by.
    `CDOStore` | `getStore()` |
    `InternalCDOView.ViewAndState` | `getViewAndState​(CDOState state)` |
    `java.lang.Object` | `getViewMonitor()` |
    `InternalCDOViewSet` | `getViewSet()` | Returns the `view set` this view is associated with.
    `void` | `handleAddAdapter​(InternalCDOObject eObject, org.eclipse.emf.common.notify.Adapter adapter)` |
    `void` | `handleLockNotification​(InternalCDOView sender, CDOLockChangeInfo lockChangeInfo)` |
    `void` | `handleObjectStateChanged​(InternalCDOObject object, CDOState oldState, CDOState newState)` |
    `void` | `handleRemoveAdapter​(InternalCDOObject eObject, org.eclipse.emf.common.notify.Adapter adapter)` |
    `boolean` | `hasSubscription​(CDOID id)` |
    `void` | `invalidate​(CDOBranch branch, long lastUpdateTime, java.util.List<CDORevisionKey> allChangedObjects, java.util.List<CDOIDAndVersion> allDetachedObjects, java.util.Map<CDOID,​InternalCDORevision> oldRevisions, boolean async)` | Deprecated. As of 4.2.
    `void` | `invalidate​(CDOBranch branch, long lastUpdateTime, java.util.List<CDORevisionKey> allChangedObjects, java.util.List<CDOIDAndVersion> allDetachedObjects, java.util.Map<CDOID,​InternalCDORevision> oldRevisions, boolean async, boolean clearResourcePathCache)` | Deprecated. As of 4.6.
    `void` | `invalidate​(InternalCDOView.ViewInvalidationData invalidationData)` |
    `void` | `inverseClose()` |
    `boolean` | `isClosing()` |
    `boolean` | `isObjectLocked​(CDOObject object, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, boolean byOthers)` |
    `boolean` | `isObjectNew​(CDOID id)` |
    `void` | `lockView()` |
    `void` | `prefetchRevisions​(CDOID id, int depth)` |
    `void` | `registerObject​(InternalCDOObject object)` |
    `void` | `registerProxyResource​(CDOResourceImpl resource)` | Deprecated. No longer supported.
    `void` | `remapObject​(CDOID oldID)` |
    `void` | `resourceLoaded​(CDOResourceImpl resource, boolean loaded)` |
    `void` | `setFeatureAnalyzer​(CDOFeatureAnalyzer featureAnalyzer)` | Deprecated.
    `void` | `setLastUpdateTime​(long lastUpdateTime)` |
    `void` | `setProvider​(CDOViewProvider provider)` |
    `void` | `setRepositoryName​(java.lang.String repositoryName)` |
    `void` | `setSession​(InternalCDOSession session)` |
    `void` | `setViewID​(int viewId)` |
    `void` | `setViewSet​(InternalCDOViewSet viewSet)` |
    `void` | `subscribe​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.notify.Adapter adapter)` |
    `InternalCDOTransaction` | `toTransaction()` |
    `void` | `unlockView()` |
    `void` | `unsubscribe​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.notify.Adapter adapter)` |
    `void` | `updateLockStates​(java.util.Collection<? extends CDOLockState> newLockStates, boolean loadObjectsOnDemand, java.util.function.Consumer<CDOLockState> consumer)` |
    `void` | `updateLockStates​(CDOLockState[] newLockStates, boolean loadObjectsOnDemand, java.util.function.Consumer<CDOLockState> consumer)` | Deprecated. As of 4.15 use `updateLockStates(Collection, boolean, Consumer)`.

    - ### Methods inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPoint

      `getBranch, getTimeStamp`

    - ### Methods inherited from interface org.eclipse.emf.cdo.common.commit.CDOCommitHistory.Provider

      `getHistory, getHistory`

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

      `getDurableLockingID, getSessionID, getViewID, isDurableView, isHistorical, isReadOnly`

    - ### Methods inherited from interface org.eclipse.emf.cdo.common.id.CDOIDProvider

      `provideCDOID`

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

      `getRevision`

    - ### Methods inherited from interface org.eclipse.emf.cdo.util.CDOUpdatable

      `getLastUpdateTime, runAfterUpdate, waitForUpdate, waitForUpdate`

    - ### Methods inherited from interface org.eclipse.emf.cdo.view.CDOView

      `addObjectHandler, addRegistrationHandler, compareRevisions, createQuery, createQuery, createResourceURI, disableDurableLocking, enableDurableLocking, enableDurableLocking, getBinaryResource, getLockStates, getLockStatesOfObjects, getObject, getObject, getObject, getObjectHandlers, getObjects, getProvider, getRegistrationHandlers, getResource, getResource, getResourceFolder, getResourceNode, getResourceSet, getRootResource, getTextResource, getUnitManager, getURIHandler, getViewLock, hasConflict, hasResource, isDirty, isInvalidating, isInvalidationRunnerActive, isLegacyModeEnabled, isObjectRegistered, lockObjects, lockObjects, options, queryInstances, queryInstancesAsync, queryInstancesAsync, queryResources, queryResourcesAsync, queryXRefs, queryXRefs, queryXRefsAsync, refreshLockStates, reload, removeObjectHandler, removeRegistrationHandler, setBranch, setBranch, setBranchPoint, setBranchPoint, setBranchPoint, setBranchPoint, setResourcePathCache, setTimeStamp, setTimeStamp, syncExec, syncExec, unlockObjects, unlockObjects, unlockObjects`

    - ### Methods inherited from interface org.eclipse.net4j.util.collection.Closeable

      `close, isClosed`

    - ### Methods inherited from interface org.eclipse.core.runtime.IAdaptable

      `getAdapter`

    - ### Methods inherited from interface org.eclipse.net4j.util.container.IContainer

      `getElements, isEmpty`

    - ### Methods inherited from interface org.eclipse.net4j.util.concurrent.IExecutorServiceProvider

      `getExecutorService`

    - ### Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle

      `activate, deactivate, getLifecycleState, isActive`

    - ### Methods inherited from interface org.eclipse.net4j.util.event.INotifier

      `addListener, getListeners, hasListeners, removeListener`

    - ### Methods inherited from interface org.eclipse.net4j.util.properties.IPropertiesContainer

      `properties`

- - ### Method Detail

    - #### setViewID

          void setViewID​(int viewId)

    - #### setProvider

          void setProvider​(CDOViewProvider provider)

      Since:
        4.4

    - #### getRepositoryName

          java.lang.String getRepositoryName()

      Since:
        4.4

    - #### setRepositoryName

          void setRepositoryName​(java.lang.String repositoryName)

      Since:
        4.4

    - #### getSession

          InternalCDOSession getSession()

      Description copied from interface: `CDOView`
      Returns the `session` this view was opened by.
      Specified by:
        `getSession` in interface `CDOCommonView`
      Specified by:
        `getSession` in interface `CDOView`
      Returns:
        The session this view was opened by, or `null` if this view is closed.
      See Also:
        `Closeable.close()`, `Closeable.isClosed()`, `CDOViewContainer.openView()`, `CDOTransactionContainer.openTransaction()`

    - #### setSession

          void setSession​(InternalCDOSession session)

    - #### getViewSet

          InternalCDOViewSet getViewSet()

      Description copied from interface: `CDOView`
      Returns the `view set` this view is associated with.
      Specified by:
        `getViewSet` in interface `CDOView`
      Returns:
        The view set this view is associated with, never `null`.
      See Also:
        `CDOViewSet.getViews()`

    - #### setViewSet

          void setViewSet​(InternalCDOViewSet viewSet)

    - #### getFeatureAnalyzer

          @Deprecated
          CDOFeatureAnalyzer getFeatureAnalyzer()

      Deprecated.

    - #### setFeatureAnalyzer

          @Deprecated
          void setFeatureAnalyzer​(CDOFeatureAnalyzer featureAnalyzer)

      Deprecated.

    - #### getObjects

          java.util.Map<CDOID,​InternalCDOObject> getObjects()

      Returns an unmodifiable map of the objects managed by this view.
      Since:
        4.0

    - #### getObjectsList

          java.util.List<InternalCDOObject> getObjectsList()

      Since:
        4.3

    - #### getStore

          CDOStore getStore()

      Since:
        4.0

    - #### toTransaction

          InternalCDOTransaction toTransaction()

    - #### attachResource

          void attachResource​(CDOResourceImpl resource)

    - #### resourceLoaded

          void resourceLoaded​(CDOResourceImpl resource,
                              boolean loaded)

      Since:
        4.5

    - #### handleObjectStateChanged

          void handleObjectStateChanged​(InternalCDOObject object,
                                        CDOState oldState,
                                        CDOState newState)

      Since:
        3.0

    - #### invalidate

          @Deprecated
          void invalidate​(CDOBranch branch,
                          long lastUpdateTime,
                          java.util.List<CDORevisionKey> allChangedObjects,
                          java.util.List<CDOIDAndVersion> allDetachedObjects,
                          java.util.Map<CDOID,​InternalCDORevision> oldRevisions,
                          boolean async)

      Deprecated.
      As of 4.2. use `invalidate(CDOBranch, long, List, List, Map, boolean, boolean)`

    - #### invalidate

          @Deprecated
          void invalidate​(CDOBranch branch,
                          long lastUpdateTime,
                          java.util.List<CDORevisionKey> allChangedObjects,
                          java.util.List<CDOIDAndVersion> allDetachedObjects,
                          java.util.Map<CDOID,​InternalCDORevision> oldRevisions,
                          boolean async,
                          boolean clearResourcePathCache)

      Deprecated.
      As of 4.6. use `invalidate(ViewInvalidationData)`
      Since:
        4.2

    - #### invalidate

          void invalidate​(InternalCDOView.ViewInvalidationData invalidationData)

      Since:
        4.6

    - #### setLastUpdateTime

          void setLastUpdateTime​(long lastUpdateTime)

      Since:
        3.0

    - #### collectViewedRevisions

          void collectViewedRevisions​(java.util.Map<CDOID,​InternalCDORevision> revisions)

      Since:
        3.0

    - #### remapObject

          void remapObject​(CDOID oldID)

    - #### clearResourcePathCacheIfNecessary

          void clearResourcePathCacheIfNecessary​(CDORevisionDelta delta)

      Since:
        4.2

    - #### getResourceNodeID

          CDOID getResourceNodeID​(java.lang.String path)

    - #### registerProxyResource

          @Deprecated
          void registerProxyResource​(CDOResourceImpl resource)

      Deprecated.
      No longer supported.

    - #### registerObject

          void registerObject​(InternalCDOObject object)

    - #### deregisterObject

          void deregisterObject​(InternalCDOObject object)

    - #### getRevision

          InternalCDORevision getRevision​(CDOID id,
                                          boolean loadOnDemand)

    - #### prefetchRevisions

          void prefetchRevisions​(CDOID id,
                                 int depth)

      Since:
        3.0

    - #### convertObjectToID

          java.lang.Object convertObjectToID​(java.lang.Object potentialObject)

    - #### convertObjectToID

          java.lang.Object convertObjectToID​(java.lang.Object potentialObject,
                                             boolean onlyPersistedID)

    - #### convertIDToObject

          java.lang.Object convertIDToObject​(java.lang.Object potentialID)

    - #### isObjectNew

          boolean isObjectNew​(CDOID id)

      Since:
        4.1

    - #### handleAddAdapter

          void handleAddAdapter​(InternalCDOObject eObject,
                                org.eclipse.emf.common.notify.Adapter adapter)

    - #### handleRemoveAdapter

          void handleRemoveAdapter​(InternalCDOObject eObject,
                                   org.eclipse.emf.common.notify.Adapter adapter)

    - #### subscribe

          void subscribe​(org.eclipse.emf.ecore.EObject eObject,
                         org.eclipse.emf.common.notify.Adapter adapter)

    - #### unsubscribe

          void unsubscribe​(org.eclipse.emf.ecore.EObject eObject,
                           org.eclipse.emf.common.notify.Adapter adapter)

    - #### hasSubscription

          boolean hasSubscription​(CDOID id)

    - #### getLockOwner

          CDOLockOwner getLockOwner()

      Specified by:
        `getLockOwner` in interface `CDOCommonView`
      Since:
        4.12

    - #### isObjectLocked

          boolean isObjectLocked​(CDOObject object,
                                 org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType,
                                 boolean byOthers)

      Since:
        3.0

    - #### updateLockStates

          @Deprecated
          void updateLockStates​(CDOLockState[] newLockStates,
                                boolean loadObjectsOnDemand,
                                java.util.function.Consumer<CDOLockState> consumer)

      Deprecated.
      As of 4.15 use `updateLockStates(Collection, boolean, Consumer)`.
      Since:
        4.12

    - #### updateLockStates

          void updateLockStates​(java.util.Collection<? extends CDOLockState> newLockStates,
                                boolean loadObjectsOnDemand,
                                java.util.function.Consumer<CDOLockState> consumer)

      Since:
        4.15

    - #### getLockStates

          CDOLockState[] getLockStates​(java.util.Collection<CDOID> ids,
                                       boolean loadOnDemand)

      Since:
        4.15

    - #### handleLockNotification

          void handleLockNotification​(InternalCDOView sender,
                                      CDOLockChangeInfo lockChangeInfo)

      Since:
        4.1

    - #### getViewAndState

          InternalCDOView.ViewAndState getViewAndState​(CDOState state)

      Since:
        4.2

    - #### getViewMonitor

          java.lang.Object getViewMonitor()

      Since:
        4.5

    - #### lockView

          void lockView()

      Since:
        4.5

    - #### unlockView

          void unlockView()

      Since:
        4.5

    - #### isClosing

          boolean isClosing()

      Since:
        4.15

    - #### inverseClose

          void inverseClose()

      Since:
        4.15