java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingEntityListener
ch.tocco.nice2.optional.qualification.impl.entitylistener.InputEntityListener
All Implemented Interfaces:
ContextListener, EntityFacadeListener, CommitListener, EventListener

public class InputEntityListener extends CollectingEntityListener
updates exams and runs evaluation for an Input where the number of ratings changed
  • Constructor Details

  • Method Details

    • onBeforeCommit

      public void onBeforeCommit(Transaction tx)
      In case of a modified amount of Ratings without already available Input_data, the Exams will be created without any further action. If there is already Input_data available, the entries will first get re-evaluated and the generation of Exams will be later during that process to enable direct linking of Ratings and Exams.
      Specified by:
      onBeforeCommit in class CollectingEntityListener
      Parameters:
      tx - the transaction in question