org.eclipse.emf.cdo.server
Interface IStore

All Superinterfaces:
IRepositoryElement
All Known Subinterfaces:
IDBStore, IHibernateStore

public interface IStore
extends IRepositoryElement


Method Summary
 CDOIDLibraryDescriptor getCDOIDLibraryDescriptor()
           
 CDOIDLibraryProvider getCDOIDLibraryProvider()
           
 CDOIDObjectFactory getCDOIDObjectFactory()
           
 long getLastMetaID()
           
 IStoreReader getReader(ISession session)
          Returns a reader that can be used to read from this store in the context of the given session.
 java.lang.String getStoreType()
           
 IStoreWriter getWriter(IView view)
          Returns a writer that can be used to write to this store in the context of the given view.
 boolean hasAuditingSupport()
          Returns if this store supports the retrieval of historical newRevisions.
 boolean hasBranchingSupport()
          Returns if this store supports the storage of concurrent newRevisions in separate branches.
 boolean hasWriteDeltaSupport()
          Returns if this store supports the writing of modified newRevisions in terms of deltas.
 void repairAfterCrash()
           
 void setRepository(IRepository repository)
          Internal method.
 boolean wasCrashed()
           
 
Methods inherited from interface org.eclipse.emf.cdo.server.IRepositoryElement
getRepository
 

Method Detail

setRepository

void setRepository(IRepository repository)
Internal method. Should only be called by Repository.setStore(IStore).


getStoreType

java.lang.String getStoreType()

getCDOIDObjectFactory

CDOIDObjectFactory getCDOIDObjectFactory()

getCDOIDLibraryDescriptor

CDOIDLibraryDescriptor getCDOIDLibraryDescriptor()

getCDOIDLibraryProvider

CDOIDLibraryProvider getCDOIDLibraryProvider()

hasWriteDeltaSupport

boolean hasWriteDeltaSupport()
Returns if this store supports the writing of modified newRevisions in terms of deltas.

The contract includes that store implementations with write delta support must also implement IStoreWriter.writeRevisionDelta(CDORevisionDeltaImpl) to not throw an UnsupportedOperationException.

Returns:
true if this store supports the writing of modified newRevisions in terms of deltas, false otherwise.

hasAuditingSupport

boolean hasAuditingSupport()
Returns if this store supports the retrieval of historical newRevisions.

The contract includes that store implementations with auditing support must also implement IStoreReader.readRevisionByTime(CDOID, int, long) to not throw an UnsupportedOperationException.

Returns:
true if this store supports the retrieval of historical newRevisions, false otherwise.

hasBranchingSupport

boolean hasBranchingSupport()
Returns if this store supports the storage of concurrent newRevisions in separate branches.

Note: This is reserved for future use by the framework. There is currently no support for branching in the framework!

Returns:
true if this store supports the storage of concurrent newRevisions in separate branches, false otherwise.

wasCrashed

boolean wasCrashed()

repairAfterCrash

void repairAfterCrash()

getLastMetaID

long getLastMetaID()

getReader

IStoreReader getReader(ISession session)
Returns a reader that can be used to read from this store in the context of the given session.

Parameters:
session - The session that should be used as a context for read access or null. The store implementor is free to interpret and use the session in a manner suitable for him or ignore it at all. It is meant only as a hint. Implementor can use it as a key into a cache and/or register a LifecycleEventAdapter with it to intercept cleanup on session close. Note however that the session can be null, for example during startup of the server while the repositories are initialized but before any user session has been opened.
Returns:
a reader that can be used to read from this store in the context of the given session, never null.

getWriter

IStoreWriter getWriter(IView view)
Returns a writer that can be used to write to this store in the context of the given view. The given view is always marked as a transaction.

Parameters:
view - The view that must be used as a context for write access. The store implementor is free to interpret and use the view in a manner suitable for him or ignore it at all. It is meant only as a hint. Implementor can use it as a key into a cache and/or register a LifecycleEventAdapter with it to intercept cleanup on view close.
Returns:
a writer that can be used to write to this store in the context of the given view, never null.

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