|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.policy.TransactionBehaviourQueue
public class TransactionBehaviourQueue
Transaction Behaviour Queue. Responsible for keeping a record of behaviours to execute at the end of a transaction.
| Constructor Summary | |
|---|---|
TransactionBehaviourQueue()
|
|
| Method Summary | |
|---|---|
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()
|
void |
queue(Behaviour behaviour,
PolicyDefinition definition,
Policy policyInterface,
java.lang.reflect.Method method,
java.lang.Object[] args)
Queue a behaviour for end-of-transaction execution |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionBehaviourQueue()
| Method Detail |
|---|
public void queue(Behaviour behaviour,
PolicyDefinition definition,
Policy policyInterface,
java.lang.reflect.Method method,
java.lang.Object[] args)
behaviour - definition - policyInterface - method - args - public void flush()
flush in interface TransactionListenerpublic void beforeCommit(boolean readOnly)
TransactionListenerAll transaction resources are still available.
beforeCommit in interface TransactionListenerreadOnly - true if the transaction is read-onlypublic void beforeCompletion()
TransactionListenerTransactionListener.beforeCommit(boolean) even if TransactionListener.beforeCommit(boolean)
failed.
Any exceptions generated here will only be logged and will have no effect on the state of the transaction.
All transaction resources are still available.
beforeCompletion in interface TransactionListenerpublic void afterCommit()
TransactionListenerAny exceptions generated here will cause the transaction to rollback.
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 TransactionListenerpublic void afterRollback()
TransactionListenerAlthough all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.
afterRollback in interface TransactionListenerpublic 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||