org.eclipse.emf.cdo.transaction
Class CDODefaultTransactionHandler

java.lang.Object
  extended by org.eclipse.emf.cdo.transaction.CDODefaultTransactionHandler1
      extended by org.eclipse.emf.cdo.transaction.CDODefaultTransactionHandler
All Implemented Interfaces:
CDOTransactionHandler, CDOTransactionHandler1, CDOTransactionHandler2, CDOTransactionHandlerBase

public abstract class CDODefaultTransactionHandler
extends CDODefaultTransactionHandler1
implements CDOTransactionHandler

Since:
2.0
Author:
Eike Stepper

Constructor Summary
protected CDODefaultTransactionHandler()
           
 
Method Summary
 void committedTransaction(CDOTransaction transaction, CDOCommitContext commitContext)
          Called by a CDOTransaction after it is being committed.
 void committingTransaction(CDOTransaction transaction, CDOCommitContext commitContext)
          Called by a CDOTransaction before it is being committed.
 void rolledBackTransaction(CDOTransaction transaction)
          Called by a CDOTransaction after it is rolled back.
 
Methods inherited from class org.eclipse.emf.cdo.transaction.CDODefaultTransactionHandler1
attachingObject, detachingObject, modifyingObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.cdo.transaction.CDOTransactionHandler1
attachingObject, detachingObject, modifyingObject
 

Constructor Detail

CDODefaultTransactionHandler

protected CDODefaultTransactionHandler()
Method Detail

committingTransaction

public void committingTransaction(CDOTransaction transaction,
                                  CDOCommitContext commitContext)
Description copied from interface: CDOTransactionHandler2
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 (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.

Specified by:
committingTransaction in interface CDOTransactionHandler2

rolledBackTransaction

public void rolledBackTransaction(CDOTransaction transaction)
Description copied from interface: CDOTransactionHandler2
Called by a CDOTransaction 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.

Specified by:
rolledBackTransaction in interface CDOTransactionHandler2

committedTransaction

public void committedTransaction(CDOTransaction transaction,
                                 CDOCommitContext commitContext)
Description copied from interface: CDOTransactionHandler2
Called by a CDOTransaction after it is being committed. The implementor of this method is not allowed to throw an unchecked exception.

Specified by:
committedTransaction in interface CDOTransactionHandler2


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.