public class ActionTransactionListener extends java.lang.Object implements TransactionListener
| Constructor and Description |
|---|
ActionTransactionListener(RuntimeActionService actionService)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterCommit()
Invoked after transaction commit.
|
void |
afterRollback()
Invoked after transaction rollback.
|
void |
beforeCommit(boolean readOnly)
Called before a transaction is committed.
|
void |
beforeCompletion()
Invoked before transaction commit/rollback.
|
boolean |
equals(java.lang.Object obj) |
void |
flush() |
int |
hashCode() |
public ActionTransactionListener(RuntimeActionService actionService)
actionService - the action servicepublic void flush()
flush in interface TransactionListenerTransactionListener.flush()public void beforeCommit(boolean readOnly)
TransactionListenerAll transaction resources are still available.
beforeCommit in interface TransactionListenerreadOnly - true if the transaction is read-onlyTransactionListener.beforeCommit(boolean)public void beforeCompletion()
TransactionListenerTransactionListener.beforeCommit(boolean) even if TransactionListener.beforeCommit(boolean)
failed.
All transaction resources are still available.
beforeCompletion in interface TransactionListenerTransactionListener.beforeCompletion()public void afterCommit()
TransactionListenerAny 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 TransactionListenerTransactionListener.afterCommit()public void afterRollback()
TransactionListenerAny 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 TransactionListenerTransactionListener.afterRollback()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.