Package org.eclipse.emf.cdo.transaction
Klasse CDOPostEventTransactionHandler
java.lang.Object
org.eclipse.emf.cdo.transaction.CDOPostEventTransactionHandler
- Alle implementierten Schnittstellen:
CDOTransactionHandler
,CDOTransactionHandler1
,CDOTransactionHandler2
,CDOTransactionHandlerBase
- Bekannte direkte Unterklassen:
CDOPostEventTransactionHandler.Default
public abstract class CDOPostEventTransactionHandler
extends Object
implements CDOTransactionHandler
An abstract call-back class that is called by a
transcation
after objects
have been
attached, modified or detached.- Seit:
- 4.1
- Autor:
- Martin Fluegge
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic class
An empty default implementation ofCDOPostEventTransactionHandler
.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.emf.cdo.transaction.CDOTransactionHandler1
CDOTransactionHandler1.WithUndo
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract void
attachedObject
(CDOTransaction transaction, CDOObject object, Notification msg) void
attachingObject
(CDOTransaction transaction, CDOObject object) Called by aCDOTransaction
before an object is added.void
committedTransaction
(CDOTransaction transaction, CDOCommitContext commitContext) Called by aCDOTransaction
after it is being committed.void
committingTransaction
(CDOTransaction transaction, CDOCommitContext commitContext) Called by aCDOTransaction
before it is being committed.protected abstract void
detachedObject
(CDOTransaction transaction, CDOObject object, Notification msg) void
detachingObject
(CDOTransaction transaction, CDOObject object) Called by aCDOTransaction
before an object is detached.protected abstract void
modifiedObject
(CDOTransaction transaction, CDOObject object, Notification msg) void
modifyingObject
(CDOTransaction transaction, CDOObject object, CDOFeatureDelta featureDelta) Called by aCDOTransaction
before an object is modified.void
rolledBackTransaction
(CDOTransaction transaction) Called by aCDOTransaction
after it is rolled back.
-
Konstruktordetails
-
CDOPostEventTransactionHandler
public CDOPostEventTransactionHandler()
-
-
Methodendetails
-
attachingObject
Beschreibung aus Schnittstelle kopiert:CDOTransactionHandler1
Called by aCDOTransaction
before an object is added. The implementor of this method is allowed to throw an unchecked exception that will propagate up to the operation that is about to add the object (thereby preventing the operation from successful completion).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 theview
you should useCDOAsyncTransactionHandler
.- Angegeben von:
attachingObject
in SchnittstelleCDOTransactionHandler1
-
modifyingObject
public void modifyingObject(CDOTransaction transaction, CDOObject object, CDOFeatureDelta featureDelta) Beschreibung aus Schnittstelle kopiert:CDOTransactionHandler1
Called by aCDOTransaction
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 theview
you should useCDOAsyncTransactionHandler
.- Angegeben von:
modifyingObject
in SchnittstelleCDOTransactionHandler1
-
detachingObject
Beschreibung aus Schnittstelle kopiert:CDOTransactionHandler1
Called by aCDOTransaction
before an object is detached. The implementor of this method is allowed to throw an unchecked exception that will propagate up to the operation that is about to remove 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 theview
you should useCDOAsyncTransactionHandler
.- Angegeben von:
detachingObject
in SchnittstelleCDOTransactionHandler1
-
committingTransaction
Beschreibung aus Schnittstelle kopiert:CDOTransactionHandler2
Called by aCDOTransaction
before it is being committed. The implementor of this method is allowed to throw an unchecked exception that will propagate up to the operation that is about to commit the transaction (thereby preventing the operation from completing successfully). The implementor of this method is allowed to apply changes to the object graph managed by the transaction.- Angegeben von:
committingTransaction
in SchnittstelleCDOTransactionHandler2
-
committedTransaction
Beschreibung aus Schnittstelle kopiert:CDOTransactionHandler2
Called by aCDOTransaction
after it is being committed. The implementor of this method is not allowed to throw an unchecked exception.If you're interested in the results of the commit operation consider to implement
CDOTransactionHandler3.committedTransaction()
.- Angegeben von:
committedTransaction
in SchnittstelleCDOTransactionHandler2
-
rolledBackTransaction
Beschreibung aus Schnittstelle kopiert:CDOTransactionHandler2
Called by aCDOTransaction
after it is rolled back. If the implementor of this method throws an exception it will be logged as an error and subsequent handlers will be further called.- Angegeben von:
rolledBackTransaction
in SchnittstelleCDOTransactionHandler2
-
attachedObject
protected abstract void attachedObject(CDOTransaction transaction, CDOObject object, Notification msg) -
modifiedObject
protected abstract void modifiedObject(CDOTransaction transaction, CDOObject object, Notification msg) -
detachedObject
protected abstract void detachedObject(CDOTransaction transaction, CDOObject object, Notification msg)
-