2.17.2: 2011-06-17

net.sf.basedb.clients.web.extensions.edit
Class DebugOnSaveActionFactory.DebugOnSaveAction

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.edit.AbstractOnSaveAction
      extended by 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 Summary
DebugOnSaveActionFactory.DebugOnSaveAction(JspContext jspContext)
           
 
Method Summary
 void onCommit()
          This event is fired after a successful commit.
 void onRollback(Exception ex)
          This event is fired after an error that caused the save action to rollback.
 void onSave()
          This event is fired first to let the action do something with the current item.
 
Methods inherited from class net.sf.basedb.clients.web.extensions.edit.AbstractOnSaveAction
getJspContext, setJspContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugOnSaveActionFactory.DebugOnSaveAction

public DebugOnSaveActionFactory.DebugOnSaveAction(JspContext jspContext)
Method Detail

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

2.17.2: 2011-06-17