public class TransactionBehaviourQueue extends Object implements TransactionListener
Constructor and Description |
---|
TransactionBehaviourQueue() |
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(Object obj) |
void |
flush() |
int |
hashCode() |
<P extends Policy> |
queue(Behaviour behaviour,
PolicyDefinition<P> definition,
P policyInterface,
Method method,
Object[] args)
Queue a behaviour for end-of-transaction execution
|
public <P extends Policy> void queue(Behaviour behaviour, PolicyDefinition<P> definition, P policyInterface, Method method, Object[] args)
P
- P extends Policybehaviour
- Behaviourdefinition
- PolicyDefinitionpolicyInterface
- Pmethod
- Methodargs
- Object[]public void flush()
public void beforeCommit(boolean readOnly)
TransactionListener
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
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()
TransactionListener
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()
TransactionListener
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
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
Copyright © 2005–2017 Alfresco Software. All rights reserved.