|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.emf.cdo.spi.server.StoreAccessor
public abstract class StoreAccessor
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.IStoreAccessor |
|---|
IStoreAccessor.AdditionalRevisionCache, IStoreAccessor.CommitContext, IStoreAccessor.QueryResourcesContext |
| Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle |
|---|
org.eclipse.net4j.util.lifecycle.ILifecycle.Introspection |
| Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier |
|---|
org.eclipse.net4j.util.event.INotifier.Introspection |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
|---|
USE_LABEL |
| Constructor Summary | |
|---|---|
protected |
StoreAccessor(Store store,
ISession session)
|
protected |
StoreAccessor(Store store,
ITransaction transaction)
|
| Method Summary | |
|---|---|
protected abstract void |
addIDMappings(IStoreAccessor.CommitContext context,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
Add ID mappings for all new objects of a transaction to the commit context. |
protected abstract void |
detachObjects(CDOID[] detachedObjects,
long revised,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
|
protected abstract void |
doActivate()
|
protected abstract void |
doDeactivate()
|
protected abstract void |
doPassivate()
|
protected abstract void |
doUnpassivate()
|
ISession |
getSession()
Returns the session this accessor is associated with. |
Store |
getStore()
Returns the store this accessor is associated with. |
ITransaction |
getTransaction()
Returns the transaction this accessor is associated with if IStoreAccessor.isReader() returns false,
null otherwise. |
boolean |
isReader()
Returns true if this accessor has been configured for read-only access to the back-end,
false otherwise. |
CDOID |
readResourceID(CDOID folderID,
java.lang.String name,
long timeStamp)
Returns the CDOID of the resource node with the given folderID and name if a resource with this
folderID and name exists in the store, null otherwise. |
void |
release()
|
void |
rollback()
Note: IStoreAccessor.write(CommitContext, OMMonitor) and IStoreAccessor.rollback() could be
called from different threads. |
protected abstract void |
rollback(IStoreAccessor.CommitContext commitContext)
|
InternalCDORevision |
verifyRevision(InternalCDORevision revision)
|
void |
write(IStoreAccessor.CommitContext context,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
Called before committing. |
protected abstract void |
writeRevisionDeltas(InternalCDORevisionDelta[] revisionDeltas,
long created,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
|
protected abstract void |
writeRevisions(InternalCDORevision[] revisions,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
|
| Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
|---|
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString |
| Methods inherited from class org.eclipse.net4j.util.event.Notifier |
|---|
addListener, fireEvent, getListeners, getNotificationExecutorService, hasListeners, listenersEmptyChanged, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.cdo.server.IStoreAccessor |
|---|
commit, createChunkReader, loadPackageUnit, queryResources, readPackageUnits, readRevision, readRevisionByTime, readRevisionByVersion, refreshRevisions, writePackageUnits |
| Methods inherited from interface org.eclipse.emf.cdo.server.IQueryHandlerProvider |
|---|
getQueryHandler |
| Constructor Detail |
|---|
protected StoreAccessor(Store store,
ISession session)
protected StoreAccessor(Store store,
ITransaction transaction)
| Method Detail |
|---|
public Store getStore()
IStoreAccessor
getStore in interface IStoreAccessorpublic boolean isReader()
IStoreAccessortrue if this accessor has been configured for read-only access to the back-end,
false otherwise.
isReader in interface IStoreAccessorpublic ISession getSession()
IStoreAccessor
getSession in interface IStoreAccessorpublic ITransaction getTransaction()
IStoreAccessorIStoreAccessor.isReader() returns false,
null otherwise.
getTransaction in interface IStoreAccessor
public CDOID readResourceID(CDOID folderID,
java.lang.String name,
long timeStamp)
IStoreAccessorCDOID of the resource node with the given folderID and name if a resource with this
folderID and name exists in the store, null otherwise.
readResourceID in interface IStoreAccessorpublic InternalCDORevision verifyRevision(InternalCDORevision revision)
verifyRevision in interface IStoreAccessor
public void write(IStoreAccessor.CommitContext context,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
IStoreAccessorIStoreAccessor.commit(OMMonitor) or
IStoreAccessor.rollback() will be called after any numbers of
IStoreAccessor.write(CommitContext, OMMonitor).
Note: IStoreAccessor.write(CommitContext, OMMonitor) and IStoreAccessor.commit(OMMonitor)
could be called from different threads.
write in interface IStoreAccessorpublic void rollback()
IStoreAccessorIStoreAccessor.write(CommitContext, OMMonitor) and IStoreAccessor.rollback() could be
called from different threads.
rollback in interface IStoreAccessorprotected abstract void rollback(IStoreAccessor.CommitContext commitContext)
public final void release()
release in interface IStoreAccessor
protected abstract void addIDMappings(IStoreAccessor.CommitContext context,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
CommitContext#addIDMapping(CDOIDTemp, CDOID).
protected abstract void writeRevisions(InternalCDORevision[] revisions,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
protected abstract void writeRevisionDeltas(InternalCDORevisionDelta[] revisionDeltas,
long created,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
protected abstract void detachObjects(CDOID[] detachedObjects,
long revised,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
protected abstract void doActivate()
throws java.lang.Exception
doActivate in class org.eclipse.net4j.util.lifecycle.Lifecyclejava.lang.Exception
protected abstract void doDeactivate()
throws java.lang.Exception
doDeactivate in class org.eclipse.net4j.util.lifecycle.Lifecyclejava.lang.Exception
protected abstract void doPassivate()
throws java.lang.Exception
java.lang.Exception
protected abstract void doUnpassivate()
throws java.lang.Exception
java.lang.Exception
|
Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||