public interface CDOTransactionHandler2 extends CDOTransactionHandlerBase
transcation
before it is committed and after it has
been committed or rolled back.Modifier and Type | Method and Description |
---|---|
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. |
void committingTransaction(CDOTransaction transaction, CDOCommitContext commitContext)
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.void committedTransaction(CDOTransaction transaction, CDOCommitContext commitContext)
CDOTransaction
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()
.
void rolledBackTransaction(CDOTransaction transaction)
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.Copyright (c) 2014 Eike Stepper (Berlin, 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