psdi.app.dpldasset

Class PreSaveEventComputerSystem

  • java.lang.Object
    • psdi.app.dpldasset.PreSaveEventComputerSystem
  • All Implemented Interfaces:
    EventListener


    public class PreSaveEventComputerSystem
    extends java.lang.Object
    implements EventListener
    Overrides preSaveEventAction(EventMessage em)

    Event Listener class for preSaveEvent. When this event occurs, we traverse the table list and remove the table DPAMMANUVARIANT from the list if it exists. This is because, we are using a view and the table DPAMMANUVARIANT is used in the view definition. When a delete is called on the view, rows from DPAMMANUVARIANT are also deleted which is an undesired behavior. The view definition uses the DPAMMANUVARIANT table to display the variants.