org.eclipse.emf.cdo
Interface CDOView

All Superinterfaces:
CDOProtocolView, org.eclipse.net4j.util.event.INotifier
All Known Subinterfaces:
CDOAudit, CDOTransaction

public interface CDOView
extends CDOProtocolView, org.eclipse.net4j.util.event.INotifier


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.common.CDOProtocolView
CDOProtocolView.Type
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.Introspection
 
Field Summary
static int NO_PRELOAD
           
static long UNSPECIFIED_DATE
           
 
Method Summary
 void close()
           
 int getLoadRevisionCollectionChunkSize()
           
 CDOObject getObject(CDOID id)
           
 CDOObject getObject(CDOID id, boolean loadOnDemand)
           
 CDOResource getResource(java.lang.String path)
           
 org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
           
 CDOSession getSession()
           
 boolean hasConflict()
           
 boolean hasResource(java.lang.String path)
           
 boolean hasUniqueResourceContents()
           
 boolean isDirty()
           
 boolean isInvalidationNotificationsEnabled()
           
 boolean isObjectRegistered(CDOID id)
           
 int reload(CDOObject... objects)
           
 void setInvalidationNotificationsEnabled(boolean invalidationNotificationsEnabled)
           
 void setLoadRevisionCollectionChunkSize(int loadRevisionCollectionChunkSize)
           
 void setUniqueResourceContents(boolean uniqueResourceContents)
          Specifies whether the contents list of resources will be unique or not.
 
Methods inherited from interface org.eclipse.emf.cdo.common.CDOProtocolView
getViewID, getViewType
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, removeListener
 

Field Detail

UNSPECIFIED_DATE

static final long UNSPECIFIED_DATE
See Also:
Constant Field Values

NO_PRELOAD

static final int NO_PRELOAD
See Also:
Constant Field Values
Method Detail

getSession

CDOSession getSession()
Specified by:
getSession in interface CDOProtocolView

getResourceSet

org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()

isDirty

boolean isDirty()

hasConflict

boolean hasConflict()

hasUniqueResourceContents

boolean hasUniqueResourceContents()

setUniqueResourceContents

void setUniqueResourceContents(boolean uniqueResourceContents)
Specifies whether the contents list of resources will be unique or not.

This property is transient in that it does not stick with resources outside of the scope of this view. Especially it will not be persisted with resources in the repository. Each new view will start with true as a default value. Changing to false will subsequently apply to all resources being loaded or created.

Notice that the resource contents is a containment list and as such must be unique. Setting this property to false is only recommended for performance optimization when uniqueness is granted by other means. Violating the uniqueness constraint will result in unpredictable behaviour and possible corruption of the repository!


isInvalidationNotificationsEnabled

boolean isInvalidationNotificationsEnabled()

setInvalidationNotificationsEnabled

void setInvalidationNotificationsEnabled(boolean invalidationNotificationsEnabled)

getLoadRevisionCollectionChunkSize

int getLoadRevisionCollectionChunkSize()

setLoadRevisionCollectionChunkSize

void setLoadRevisionCollectionChunkSize(int loadRevisionCollectionChunkSize)

hasResource

boolean hasResource(java.lang.String path)

getResource

CDOResource getResource(java.lang.String path)
See Also:
ResourceSet.getResource(URI, boolean)

getObject

CDOObject getObject(CDOID id)

getObject

CDOObject getObject(CDOID id,
                    boolean loadOnDemand)

isObjectRegistered

boolean isObjectRegistered(CDOID id)

reload

int reload(CDOObject... objects)

close

void close()

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.