|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.cdo.spi.server.ObjectWriteAccessHandler
If the meaning of this type isn't clear, there really should be more of a description here...
Constructor Summary | |
---|---|
ObjectWriteAccessHandler()
|
|
ObjectWriteAccessHandler(boolean legacyModeEnabled)
Deprecated. As of 4.2 the legacy mode is always enabled. |
Method Summary | |
---|---|
protected IStoreAccessor.CommitContext |
getCommitContext()
|
protected EObject[] |
getDirtyObjects()
|
protected EObject[] |
getNewObjects()
|
protected ITransaction |
getTransaction()
|
protected CDOView |
getView()
|
void |
handleTransactionAfterCommitted(ITransaction transaction,
IStoreAccessor.CommitContext commitContext,
OMMonitor monitor)
Provides a way to handle transactions after they have been committed to the backend store. |
protected void |
handleTransactionAfterCommitted(OMMonitor monitor)
|
void |
handleTransactionBeforeCommitting(ITransaction transaction,
IStoreAccessor.CommitContext commitContext,
OMMonitor monitor)
Provides a way to handle transactions that are to be committed to the backend store. |
protected void |
handleTransactionBeforeCommitting(OMMonitor monitor)
|
boolean |
isLegacyModeEnabled()
Deprecated. As of 4.2 the legacy mode is always enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectWriteAccessHandler()
@Deprecated public ObjectWriteAccessHandler(boolean legacyModeEnabled)
Method Detail |
---|
@Deprecated public final boolean isLegacyModeEnabled()
protected final IStoreAccessor.CommitContext getCommitContext()
protected final ITransaction getTransaction()
protected final CDOView getView()
protected final EObject[] getNewObjects()
protected final EObject[] getDirtyObjects()
public final void handleTransactionBeforeCommitting(ITransaction transaction, IStoreAccessor.CommitContext commitContext, OMMonitor monitor) throws RuntimeException
IRepository.WriteAccessHandler
handleTransactionBeforeCommitting
in interface IRepository.WriteAccessHandler
transaction
- The transaction that is going to be committed.commitContext
- The context of the commit operation that is to be executed against the backend store. The context can be
used to introspect all aspects of the current commit operation. Note that you must not alter the
internal state of the commit context in any way!monitor
- A monitor that should be used by the implementor to avoid timeouts.
RuntimeException
- to indicate that the commit operation must not be executed against the backend store. This exception
will be visible at the client side!public final void handleTransactionAfterCommitted(ITransaction transaction, IStoreAccessor.CommitContext commitContext, OMMonitor monitor)
IRepository.WriteAccessHandler
handleTransactionAfterCommitted
in interface IRepository.WriteAccessHandler
transaction
- The transaction that has been committed.commitContext
- The context of the commit operation that was executed against the backend store. The context can be used
to introspect all aspects of the current commit operation. Note that you must not alter the internal
state of the commit context in any way!monitor
- A monitor that should be used by the implementor to avoid timeouts.protected void handleTransactionBeforeCommitting(OMMonitor monitor) throws RuntimeException
RuntimeException
protected void handleTransactionAfterCommitted(OMMonitor monitor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |