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
ConstructorsConstructorDescriptionCalculateContingentsAfterCommitListener(CommandExecutor commandExecutor, SecurityManager securityManager, CalculateContingentTotalService calculateContingentTotalService) -
Method Summary
Modifier and TypeMethodDescriptionprotected AfterCommitTaskvoidsetProcessEntityTask(List<ProcessEntityTaskContribution> contributions) Methods inherited from class CollectingAfterCommitListener
afterCommit, beforeCommit, contextDestroying, customizeMode, entityCreated, entityDeleted, entityUpdated, handleAfterCommit, setFutureCollectorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommitListener
afterFlush, priorityMethods inherited from interface ContextListener
transactionStarted
-
Constructor Details
-
CalculateContingentsAfterCommitListener
public CalculateContingentsAfterCommitListener(CommandExecutor commandExecutor, SecurityManager securityManager, CalculateContingentTotalService calculateContingentTotalService)
-
-
Method Details
-
getAfterCommitTask
- Specified by:
getAfterCommitTaskin classCollectingAfterCommitListener
-
setProcessEntityTask
-