Class CalculateContingentsAfterCommitListener
java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterCommitListener
ch.tocco.nice2.optional.contingent.impl.entitylistener.CalculateContingentsAfterCommitListener
- All Implemented Interfaces:
ContextListener
,EntityListener
,CommitListener
,EventListener
1. Update contingent and movement total whenever a movement was edited or created
2. Update lesson_balance when a contingent entity was updated (lesson_balance: amount_balance divided by estimation)
-
Constructor Summary
ConstructorDescriptionCalculateContingentsAfterCommitListener
(CommandExecutor commandExecutor, SecurityManager securityManager, CalculateContingentTotalService calculateContingentTotalService) -
Method Summary
Modifier and TypeMethodDescriptionprotected AfterCommitTask
void
setProcessEntityTask
(List<ProcessEntityTaskContribution> contributions) Methods inherited from class ch.tocco.nice2.persist.core.api.util.CollectingAfterCommitListener
afterCommit, beforeCommit, contextDestroying, customizeMode, entityCreated, entityDeleted, entityUpdated, handleAfterCommit, setFutureCollector
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.util.CommitListener
afterFlush, priority
Methods inherited from interface ch.tocco.nice2.persist.core.api.ContextListener
transactionStarted
-
Constructor Details
-
CalculateContingentsAfterCommitListener
public CalculateContingentsAfterCommitListener(CommandExecutor commandExecutor, SecurityManager securityManager, CalculateContingentTotalService calculateContingentTotalService)
-
-
Method Details
-
getAfterCommitTask
- Specified by:
getAfterCommitTask
in classCollectingAfterCommitListener
-
setProcessEntityTask
-