TransactionListenerAdapter
@Deprecated public abstract class TransactionListenerAdapter extends Object implements TransactionListener
Constructor and Description |
---|
TransactionListenerAdapter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterCommit()
Deprecated.
Invoked after transaction commit.
|
void |
afterRollback()
Deprecated.
Invoked after transaction rollback.
|
void |
beforeCommit(boolean readOnly)
Deprecated.
Called before a transaction is committed.
|
void |
beforeCompletion()
Deprecated.
Invoked before transaction commit/rollback.
|
void |
flush()
Deprecated.
|
public void flush()
public void beforeCommit(boolean readOnly)
All transaction resources are still available.
beforeCommit
in interface org.alfresco.util.transaction.TransactionListener
readOnly
- true if the transaction is read-onlypublic void beforeCompletion()
TransactionListener.beforeCommit(boolean)
even if TransactionListener.beforeCommit(boolean)
failed.
All transaction resources are still available.
beforeCompletion
in interface org.alfresco.util.transaction.TransactionListener
public void afterCommit()
Any 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 org.alfresco.util.transaction.TransactionListener
public void afterRollback()
Any 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 org.alfresco.util.transaction.TransactionListener
Copyright © 2005–2017 Alfresco Software. All rights reserved.