org.eclipse.emf.spi.cdo
Interface InternalCDOView

All Superinterfaces:
CDOBranchPoint, CDOCommitHistory.Provider<CDOObject,CDOObjectHistory>, CDOCommonView, CDOIDProvider, CDOLockOwner, CDORevisionProvider, CDOTimeProvider, CDOUpdatable, CDOView, Closeable, IAdaptable, IContainer<CDOResourceNode>, ILifecycle, INotifier, IOptionsContainer
All Known Subinterfaces:
InternalCDOTransaction

public interface InternalCDOView
extends CDOView, CDOIDProvider, ILifecycle

If the meaning of this type isn't clear, there really should be more of a description here...

Since:
2.0
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
static class InternalCDOView.ViewAndState
          Optimizes the storage of CDOObject.cdoView() and CDOObject.cdoState().
 
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
IContainer.Modifiable<E>
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
 
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.util.CDOUpdatable
NO_TIMEOUT
 
Fields inherited from interface org.eclipse.emf.cdo.common.id.CDOIDProvider
NOOP
 
Method Summary
 void attachResource(CDOResourceImpl resource)
           
 void clearResourcePathCacheIfNecessary(CDORevisionDelta delta)
           
 void collectViewedRevisions(Map<CDOID,InternalCDORevision> revisions)
           
 Object convertIDToObject(Object potentialID)
           
 Object convertObjectToID(Object potentialObject)
           
 Object convertObjectToID(Object potentialObject, boolean onlyPersistedID)
           
 void deregisterObject(InternalCDOObject object)
           
 CDOFeatureAnalyzer getFeatureAnalyzer()
          Deprecated. 
 CDOLockState[] getLockStates(Collection<CDOID> ids)
           
 Map<CDOID,InternalCDOObject> getObjects()
          Returns an unmodifiable map of the objects managed by this view.
 CDOID getResourceNodeID(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)
           
 InternalCDOViewSet getViewSet()
          Returns the view set this view is associated with.
 void handleAddAdapter(InternalCDOObject eObject, Adapter adapter)
           
 void handleLockNotification(InternalCDOView sender, CDOLockChangeInfo lockChangeInfo)
           
 void handleObjectStateChanged(InternalCDOObject object, CDOState oldState, CDOState newState)
           
 void handleRemoveAdapter(InternalCDOObject eObject, Adapter adapter)
           
 boolean hasSubscription(CDOID id)
           
 void invalidate(CDOBranch branch, long lastUpdateTime, List<CDORevisionKey> allChangedObjects, List<CDOIDAndVersion> allDetachedObjects, Map<CDOID,InternalCDORevision> oldRevisions, boolean async)
          Deprecated. As of 4.2. use invalidate(CDOBranch, long, List, List, Map, boolean, boolean)
 void invalidate(CDOBranch branch, long lastUpdateTime, List<CDORevisionKey> allChangedObjects, List<CDOIDAndVersion> allDetachedObjects, Map<CDOID,InternalCDORevision> oldRevisions, boolean async, boolean clearResourcePathCache)
           
 boolean isObjectLocked(CDOObject object, IRWLockManager.LockType lockType, boolean byOthers)
           
 boolean isObjectNew(CDOID id)
           
 void prefetchRevisions(CDOID id, int depth)
           
 void registerObject(InternalCDOObject object)
           
 void registerProxyResource(CDOResourceImpl resource)
           
 void remapObject(CDOID oldID)
           
 void setFeatureAnalyzer(CDOFeatureAnalyzer featureAnalyzer)
          Deprecated. 
 void setLastUpdateTime(long lastUpdateTime)
           
 void setSession(InternalCDOSession session)
           
 void setViewID(int viewId)
           
 void setViewSet(InternalCDOViewSet viewSet)
           
 void subscribe(EObject eObject, Adapter adapter)
           
 InternalCDOTransaction toTransaction()
           
 void unsubscribe(EObject eObject, Adapter adapter)
           
 
Methods inherited from interface org.eclipse.emf.cdo.view.CDOView
addObjectHandler, compareRevisions, createQuery, createQuery, disableDurableLocking, enableDurableLocking, enableDurableLocking, getBinaryResource, getObject, getObject, getObject, getObjectHandlers, getResource, getResource, getResourceFolder, getResourceNode, getResourceSet, getRootResource, getTextResource, getURIHandler, hasConflict, hasResource, isDirty, isInvalidationRunnerActive, isLegacyModeEnabled, isObjectRegistered, lockObjects, lockObjects, options, queryResources, queryResourcesAsync, queryXRefs, queryXRefs, queryXRefsAsync, reload, removeObjectHandler, setBranch, setBranchPoint, setBranchPoint, setResourcePathCache, setTimeStamp, unlockObjects, unlockObjects, unlockObjects
 
Methods inherited from interface org.eclipse.emf.cdo.common.CDOCommonView
getDurableLockingID, getViewID, isReadOnly
 
Methods inherited from interface org.eclipse.emf.cdo.common.lock.CDOLockOwner
getSessionID, isDurableView
 
Methods inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPoint
getBranch, getTimeStamp
 
Methods inherited from interface org.eclipse.emf.cdo.common.revision.CDORevisionProvider
getRevision
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.net4j.util.collection.Closeable
close, isClosed
 
Methods inherited from interface org.eclipse.emf.cdo.util.CDOUpdatable
getLastUpdateTime, waitForUpdate, waitForUpdate
 
Methods inherited from interface org.eclipse.emf.cdo.common.commit.CDOCommitHistory.Provider
getHistory, getHistory
 
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
 
Methods inherited from interface org.eclipse.emf.cdo.common.id.CDOIDProvider
provideCDOID
 
Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActive
 

Method Detail

setViewID

void setViewID(int viewId)

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

Map<CDOID,InternalCDOObject> getObjects()
Returns an unmodifiable map of the objects managed by this view.

Since:
4.0

getStore

CDOStore getStore()
Since:
4.0

toTransaction

InternalCDOTransaction toTransaction()

attachResource

void attachResource(CDOResourceImpl resource)

handleObjectStateChanged

void handleObjectStateChanged(InternalCDOObject object,
                              CDOState oldState,
                              CDOState newState)
Since:
3.0

invalidate

@Deprecated
void invalidate(CDOBranch branch,
                           long lastUpdateTime,
                           List<CDORevisionKey> allChangedObjects,
                           List<CDOIDAndVersion> allDetachedObjects,
                           Map<CDOID,InternalCDORevision> oldRevisions,
                           boolean async)
Deprecated. As of 4.2. use invalidate(CDOBranch, long, List, List, Map, boolean, boolean)


invalidate

void invalidate(CDOBranch branch,
                long lastUpdateTime,
                List<CDORevisionKey> allChangedObjects,
                List<CDOIDAndVersion> allDetachedObjects,
                Map<CDOID,InternalCDORevision> oldRevisions,
                boolean async,
                boolean clearResourcePathCache)
Since:
4.2

setLastUpdateTime

void setLastUpdateTime(long lastUpdateTime)
Since:
3.0

collectViewedRevisions

void collectViewedRevisions(Map<CDOID,InternalCDORevision> revisions)
Since:
3.0

remapObject

void remapObject(CDOID oldID)

clearResourcePathCacheIfNecessary

void clearResourcePathCacheIfNecessary(CDORevisionDelta delta)
Since:
4.2

getResourceNodeID

CDOID getResourceNodeID(String path)

registerProxyResource

void registerProxyResource(CDOResourceImpl resource)

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

Object convertObjectToID(Object potentialObject)

convertObjectToID

Object convertObjectToID(Object potentialObject,
                         boolean onlyPersistedID)

convertIDToObject

Object convertIDToObject(Object potentialID)

isObjectLocked

boolean isObjectLocked(CDOObject object,
                       IRWLockManager.LockType lockType,
                       boolean byOthers)
Since:
3.0

isObjectNew

boolean isObjectNew(CDOID id)
Since:
4.1

handleAddAdapter

void handleAddAdapter(InternalCDOObject eObject,
                      Adapter adapter)

handleRemoveAdapter

void handleRemoveAdapter(InternalCDOObject eObject,
                         Adapter adapter)

subscribe

void subscribe(EObject eObject,
               Adapter adapter)

unsubscribe

void unsubscribe(EObject eObject,
                 Adapter adapter)

hasSubscription

boolean hasSubscription(CDOID id)

handleLockNotification

void handleLockNotification(InternalCDOView sender,
                            CDOLockChangeInfo lockChangeInfo)
Since:
4.1

getLockStates

CDOLockState[] getLockStates(Collection<CDOID> ids)
Since:
4.1

getViewAndState

InternalCDOView.ViewAndState getViewAndState(CDOState state)
Since:
4.2


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.