public class TestTransactedListener extends AbstractEventListener implements PostCommitListener, OnSaveListener, PreCommitListener
| Constructor and Description |
|---|
TestTransactedListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
aboutToCommit(CoreEvent[] events)
Current transaction is about to commit.
|
void |
aboutToCommit(Operation<?>[] events)
Current transaction is about to commit.
|
void |
onCommit(CoreEvent[] events)
Current transaction was committed.
|
void |
onCommit(Operation<?>[] events)
Current transaction was committed.
|
void |
onSave(CoreEvent[] events)
Notify Last save in current transaction.
|
void |
onSave(Operation<?>[] events)
Notify Last save in current transaction.
|
accepts, addEventId, getName, getOrder, handleEvent, notifyEvent, operationStarted, operationTerminated, removeEventId, setName, setOrderpublic void onCommit(CoreEvent[] events)
PostCommitListenerThis method should be used by listeners using the CoreEvent model and ignored by the one using Operation events.
onCommit in interface PostCommitListenerevents - all core events collected in current transaction.public void onCommit(Operation<?>[] events)
PostCommitListenerThis method should be used by listeners using the Operation events and ignored by the one using CoreEvent events.
onCommit in interface PostCommitListenerevents - all operation events collected in current transactionpublic void onSave(CoreEvent[] events)
OnSaveListenerThis method should be used by listeners using the CoreEvent model and ignored by the one using Operation events.
onSave in interface OnSaveListenerevents - all core events collected in current transaction.public void onSave(Operation<?>[] events)
OnSaveListenerThis method should be used by listeners using the Operation events and ignored by the one using CoreEvent events.
onSave in interface OnSaveListenerevents - all operation events collected in current transactionpublic void aboutToCommit(CoreEvent[] events)
PreCommitListenerThis method should be used by listeners using the CoreEvent model and ignored by the one using Operation events.
aboutToCommit in interface PreCommitListenerevents - all core events collected in current transaction.public void aboutToCommit(Operation<?>[] events)
PreCommitListenerThis method should be used by listeners using the Operation events and ignored by the one using CoreEvent events.
aboutToCommit in interface PreCommitListenerevents - all operation events collected in current transactionCopyright © 2011 Nuxeo SA. All Rights Reserved.