public abstract class AbstractOnSaveAction extends java.lang.Object implements OnSaveAction
Modifier and Type | Field and Description |
---|---|
private JspContext |
jspContext |
Modifier | Constructor and Description |
---|---|
protected |
AbstractOnSaveAction()
Create a on-save action without a context
|
protected |
AbstractOnSaveAction(JspContext jspContext)
Create a on-save action with a jsp context.
|
Modifier and Type | Method and Description |
---|---|
protected JspContext |
getJspContext()
Set the JSP context of the current invokation.
|
void |
onCommit()
This event is fired after a successful commit.
|
void |
onRollback(java.lang.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.
|
private JspContext jspContext
protected AbstractOnSaveAction()
protected AbstractOnSaveAction(JspContext jspContext)
public void onSave()
OnSaveAction
OnSaveAction.onRollback(Exception)
is called.onSave
in interface OnSaveAction
public void onCommit()
OnSaveAction
onCommit
in interface OnSaveAction
public void onRollback(java.lang.Exception ex)
OnSaveAction
onRollback
in interface OnSaveAction
ex
- The exception that caused the transaction to rollbackprotected void setJspContext(JspContext jspContext)
protected JspContext getJspContext()