public class CreateVersionTxnListener extends TransactionListenerAdapter
| Constructor and Description |
|---|
CreateVersionTxnListener()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(CreateVersionCallback cb)
Register a callback.
|
void |
afterCommit()
Invoked after transaction commit.
|
void |
afterRollback()
Invoked after transaction rollback.
|
void |
versionCreated(java.lang.String storeName,
int versionID)
During the transaction somebody is responsible for
calling this.
|
beforeCommit, beforeCompletion, flushpublic void afterCommit()
TransactionListenerAdapterAny exceptions generated here will only be logged and will have no effect on the state of the transaction.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.
afterCommit in interface TransactionListenerafterCommit in class TransactionListenerAdapterpublic void afterRollback()
TransactionListenerAdapterAny exceptions generated here will only be logged and will have no effect on the state of the transaction.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.
afterRollback in interface TransactionListenerafterRollback in class TransactionListenerAdapterpublic void versionCreated(java.lang.String storeName,
int versionID)
storeName - The name of the store that just created a new versionversionID - The id of the new version.public void addCallback(CreateVersionCallback cb)
cb - The callback.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.