Class NewsletterReadDateListener
java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterCommitListener
ch.tocco.nice2.optional.newsletter.impl.entitylistener.NewsletterReadDateListener
- All Implemented Interfaces:
ContextListener,EntityListener,CommitListener,EventListener
This listener updates the "receiver_read" field of the corresponding
Newsletter_dispatch everytime a Newsletter_receiver is updated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncustomizeMode(Mode<E> mode) override this method to customize the mode for task to be executed after the commitprotected AfterCommitTaskMethods inherited from class ch.tocco.nice2.persist.core.api.util.CollectingAfterCommitListener
afterCommit, beforeCommit, contextDestroying, entityCreated, entityDeleted, entityUpdated, handleAfterCommit, setFutureCollectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.persist.core.api.util.CommitListener
afterFlush, priorityMethods inherited from interface ch.tocco.nice2.persist.core.api.ContextListener
transactionStarted
-
Constructor Details
-
NewsletterReadDateListener
-
-
Method Details
-
customizeMode
Description copied from class:CollectingAfterCommitListeneroverride this method to customize the mode for task to be executed after the commit- Overrides:
customizeModein classCollectingAfterCommitListener- Parameters:
mode- mode with default settings for CollectingAfterCommitListeners, make changes
-
getAfterCommitTask
- Specified by:
getAfterCommitTaskin classCollectingAfterCommitListener
-