|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStore
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 |
---|
void setRepository(IRepository repository)
Repository.setStore(IStore)
.
java.lang.String getStoreType()
CDOIDObjectFactory getCDOIDObjectFactory()
CDOIDLibraryDescriptor getCDOIDLibraryDescriptor()
CDOIDLibraryProvider getCDOIDLibraryProvider()
boolean hasWriteDeltaSupport()
The contract includes that store implementations with write delta support must also implement
IStoreWriter.writeRevisionDelta(CDORevisionDeltaImpl)
to
not throw an UnsupportedOperationException
.
true
if this store supports the writing of modified newRevisions in terms of deltas,
false
otherwise.boolean hasAuditingSupport()
The contract includes that store implementations with auditing support must also implement
IStoreReader.readRevisionByTime(CDOID, int, long)
to not throw an UnsupportedOperationException
.
true
if this store supports the retrieval of historical newRevisions, false
otherwise.boolean hasBranchingSupport()
Note: This is reserved for future use by the framework. There is currently no support for branching in the framework!
true
if this store supports the storage of concurrent newRevisions in separate branches,
false
otherwise.boolean wasCrashed()
void repairAfterCrash()
long getLastMetaID()
IStoreReader getReader(ISession session)
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.
null
.IStoreWriter getWriter(IView view)
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.
null
.
|
Copyright (c) 2004 - 2008 Eike Stepper, Germany. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |