|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.clients.web.extensions.edit.AbstractOnSaveAction
public abstract class AbstractOnSaveAction
Abstract base implementation of the OnSaveAction interface. This contains empty method stubs for all interface methods. It is recommended for subclasses to extend this class to avoid problems in the future if new methods are added to the interface.
Field Summary | |
---|---|
private JspContext |
jspContext
|
Constructor Summary | |
---|---|
protected |
AbstractOnSaveAction()
Create a on-save action without a context |
protected |
AbstractOnSaveAction(JspContext jspContext)
Create a on-save action with a jsp context. |
Method Summary | |
---|---|
protected JspContext |
getJspContext()
Set the JSP context of the current invokation. |
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. |
protected void |
setJspContext(JspContext jspContext)
Get the JSP context of the current invokation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private JspContext jspContext
Constructor Detail |
---|
protected AbstractOnSaveAction()
protected AbstractOnSaveAction(JspContext jspContext)
Method Detail |
---|
public void onSave()
OnSaveAction
OnSaveAction.onRollback(Exception)
is called.
onSave
in interface OnSaveAction
public void onCommit()
OnSaveAction
onCommit
in interface OnSaveAction
public void onRollback(Exception ex)
OnSaveAction
onRollback
in interface OnSaveAction
ex
- The exception that caused the transaction to rollbackprotected void setJspContext(JspContext jspContext)
protected JspContext getJspContext()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |