org.eclipse.emf.cdo.server
Interface IStoreReader

All Superinterfaces:
IStoreAccessor
All Known Subinterfaces:
IDBStoreReader, IDBStoreWriter, IHibernateStoreReader, IHibernateStoreWriter, IStoreWriter

public interface IStoreReader
extends IStoreAccessor

See Also:
StoreUtil.getReader()

Method Summary
 IStoreChunkReader createChunkReader(CDORevision revision, CDOFeature feature)
           
 ISession getSession()
           
 org.eclipse.net4j.util.collection.CloseableIterator<CDOID> readObjectIDs(boolean withTypes)
          Returns an iterator that iterates over all objects in the store and makes their ids available for processing.
 CDOClassRef readObjectType(CDOID id)
          Reads the type of an object from the associated store and returns a class reference of it.
 void readPackage(CDOPackage cdoPackage)
          Demand loads a given package proxy that has been created on startup of the repository.
 java.util.Collection<CDOPackageInfo> readPackageInfos()
           
 CDOID readResourceID(java.lang.String path)
          Returns the CDOID of the resource with the given path if a resource with this path exists in the store, null otherwise.
 java.lang.String readResourcePath(CDOID id)
          Returns the path of the resource with the given CDOID if a resource with this CDOID exists in the store, null otherwise.
 CDORevision readRevision(CDOID id, int referenceChunk)
           
 CDORevision readRevisionByTime(CDOID id, int referenceChunk, long timeStamp)
           
 CDORevision readRevisionByVersion(CDOID id, int referenceChunk, int version)
           
 CDORevision verifyRevision(CDORevision revision)
           
 
Methods inherited from interface org.eclipse.emf.cdo.server.IStoreAccessor
getStore, release
 

Method Detail

getSession

ISession getSession()

createChunkReader

IStoreChunkReader createChunkReader(CDORevision revision,
                                    CDOFeature feature)

readPackageInfos

java.util.Collection<CDOPackageInfo> readPackageInfos()

readPackage

void readPackage(CDOPackage cdoPackage)
Demand loads a given package proxy that has been created on startup of the repository.


readObjectIDs

org.eclipse.net4j.util.collection.CloseableIterator<CDOID> readObjectIDs(boolean withTypes)
Returns an iterator that iterates over all objects in the store and makes their ids available for processing. This method is supposed to be called very infrequently, for example during the recovery from a crash.


readObjectType

CDOClassRef readObjectType(CDOID id)
Reads the type of an object from the associated store and returns a class reference of it. This method is supposed to be called very infrequently if the IStore#hasEfficientTypeLookup() returns false.


readRevision

CDORevision readRevision(CDOID id,
                         int referenceChunk)

readRevisionByTime

CDORevision readRevisionByTime(CDOID id,
                               int referenceChunk,
                               long timeStamp)

readRevisionByVersion

CDORevision readRevisionByVersion(CDOID id,
                                  int referenceChunk,
                                  int version)

readResourceID

CDOID readResourceID(java.lang.String path)
Returns the CDOID of the resource with the given path if a resource with this path exists in the store, null otherwise.


readResourcePath

java.lang.String readResourcePath(CDOID id)
Returns the path of the resource with the given CDOID if a resource with this CDOID exists in the store, null otherwise.


verifyRevision

CDORevision verifyRevision(CDORevision revision)

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