Class DebugOnSaveActionFactory.DebugOnSaveAction

java.lang.Object
net.sf.basedb.clients.web.extensions.edit.AbstractOnSaveAction
net.sf.basedb.clients.web.extensions.edit.DebugOnSaveActionFactory.DebugOnSaveAction
All Implemented Interfaces:
OnSaveAction, Action
Enclosing class:
DebugOnSaveActionFactory

public static class DebugOnSaveActionFactory.DebugOnSaveAction
extends AbstractOnSaveAction
  • Constructor Details

    • DebugOnSaveAction

      public DebugOnSaveAction​(JspContext jspContext)
  • Method Details

    • onSave

      public void onSave()
      Description copied from interface: OnSaveAction
      This event is fired first to let the action do something with the current item. Implementors may throw an exception from this method to indicate that something went wrong. If so, any remaining extensions will be unprocessed and the OnSaveAction.onRollback(Exception) is called.
      Specified by:
      onSave in interface OnSaveAction
      Overrides:
      onSave in class AbstractOnSaveAction
    • onCommit

      public void onCommit()
      Description copied from interface: OnSaveAction
      This event is fired after a successful commit. Implementors should not throw any exceptions from this method since it may confuse users to see error messages and may cause other extensions to not be called.
      Specified by:
      onCommit in interface OnSaveAction
      Overrides:
      onCommit in class AbstractOnSaveAction
    • onRollback

      public void onRollback​(Exception ex)
      Description copied from interface: OnSaveAction
      This event is fired after an error that caused the save action to rollback. Implementors should not throw any exceptions from this method since it may hide original exception and may cause other extensions to not be called.
      Specified by:
      onRollback in interface OnSaveAction
      Overrides:
      onRollback in class AbstractOnSaveAction
      Parameters:
      ex - The exception that caused the transaction to rollback