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 Summary
Constructors Constructor Description DebugOnSaveAction(JspContext jspContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
DebugOnSaveAction
public 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 theOnSaveAction.onRollback(Exception)
is called.- Specified by:
onSave
in interfaceOnSaveAction
- Overrides:
onSave
in classAbstractOnSaveAction
-
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 interfaceOnSaveAction
- Overrides:
onCommit
in classAbstractOnSaveAction
-
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 interfaceOnSaveAction
- Overrides:
onRollback
in classAbstractOnSaveAction
- Parameters:
ex
- The exception that caused the transaction to rollback
-
-