org.eclipse.emf.cdo.server.ocl
Class CDOExtentCreator

java.lang.Object
  extended by org.eclipse.emf.cdo.server.ocl.CDOExtentCreator
All Implemented Interfaces:
OCLExtentCreator
Direct Known Subclasses:
CDOExtentCreator.Lazy

public class CDOExtentCreator
extends Object
implements OCLExtentCreator

An OCL extent creator implementation for CDO.

The extent of a class X is the set of all objects with object.getEClass() == X.


Nested Class Summary
static class CDOExtentCreator.Lazy
          An extent creator that creates extent sets which support a lazy populating iterator.
 
Constructor Summary
CDOExtentCreator(CDOView view)
           
 
Method Summary
 Set<EObject> createExtent(EClass eClass, AtomicBoolean canceled)
           
protected  Set<EObject> createExtent(EClass eClass, IStoreAccessor accessor, CDOBranch branch, long timeStamp, AtomicBoolean canceled)
           
 CDOChangeSetData getChangeSetData()
           
protected  EObject getEObject(CDOID id)
           
 CDORevisionCacheAdder getRevisionCacheAdder()
           
 CDOView getView()
           
protected  boolean isDetached(CDOID id)
           
 void setChangeSetData(CDOChangeSetData changeSetData)
           
 void setRevisionCacheAdder(CDORevisionCacheAdder revisionCacheAdder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDOExtentCreator

public CDOExtentCreator(CDOView view)
Method Detail

getView

public CDOView getView()

getChangeSetData

public CDOChangeSetData getChangeSetData()

setChangeSetData

public void setChangeSetData(CDOChangeSetData changeSetData)

getRevisionCacheAdder

public CDORevisionCacheAdder getRevisionCacheAdder()

setRevisionCacheAdder

public void setRevisionCacheAdder(CDORevisionCacheAdder revisionCacheAdder)

createExtent

public Set<EObject> createExtent(EClass eClass,
                                 AtomicBoolean canceled)
Specified by:
createExtent in interface OCLExtentCreator

createExtent

protected Set<EObject> createExtent(EClass eClass,
                                    IStoreAccessor accessor,
                                    CDOBranch branch,
                                    long timeStamp,
                                    AtomicBoolean canceled)

isDetached

protected boolean isDetached(CDOID id)

getEObject

protected EObject getEObject(CDOID id)
                      throws ObjectNotFoundException
Throws:
ObjectNotFoundException


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