public static interface CDOTransactionHandler1.WithUndo extends CDOTransactionHandler1
CDOTransactionHandler1.WithUndo| Modifier and Type | Method and Description |
|---|---|
void |
undoingObject(CDOTransaction transaction,
CDOObject object,
CDOFeatureDelta featureDelta)
Called by a
CDOTransaction before an object is modified. |
attachingObject, detachingObject, modifyingObjectvoid undoingObject(CDOTransaction transaction, CDOObject object, CDOFeatureDelta featureDelta)
CDOTransaction before an object is modified. The implementor of this method is
allowed to throw an unchecked exception that will propagate up to the operation that is about to modify the object
(thereby preventing the operation from completing successfully).
Note: Implementors must not start threads which access the view and wait for their
completion since deadlocks can result. The following example causes a deadlock:
getDisplay().syncExec(new Runnable()
{
public void run()
{
try
{
cdoObject.getName();
}
catch (Exception ignore)
{
}
}
});
If you need to synchronously execute threads which access the view you should use
CDOAsyncTransactionHandler.Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html