org.eclipse.emf.cdo
Interface CDOTransactionHandler


public interface CDOTransactionHandler

TODO Enhance API: Return exceptions instead of letting them be thrown


Method Summary
 void addingObject(CDOTransaction transaction, CDOObject object)
          Called by a CDOTransaction before an object is added.
 void committingTransaction(CDOTransaction transaction)
          Called by a CDOTransaction before it is being committed.
 void modifyingObject(CDOTransaction transaction, CDOObject object, CDOFeatureDelta featureDelta)
          Called by a CDOTransaction before an object is modified.
 

Method Detail

addingObject

void addingObject(CDOTransaction transaction,
                  CDOObject object)
Called by a CDOTransaction 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.


modifyingObject

void modifyingObject(CDOTransaction transaction,
                     CDOObject object,
                     CDOFeatureDelta featureDelta)
Called by a 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.

Note: This method will be called at most once per object until the associated transaction is committed.


committingTransaction

void committingTransaction(CDOTransaction transaction)
Called by a CDOTransaction 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.


Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.