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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
DebugOnSaveAction
-
-
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 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
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
-