|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OnSaveAction
Action that is called when an item is saved in gui. Actions are called after
all regular properties have been updated. It is recommended that implemting
classes extend the AbstractOnSaveAction
class since we may add more
callback methods to this interface in the future.
The onSave()
method is called first and then either onCommit()
or onRollback(Exception)
. Note that onRollback
is called for all exceptions, even if they happen before the onSave
method has been called.
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. |
Method Detail |
---|
void onSave()
onRollback(Exception)
is called.
void onCommit()
void onRollback(Exception ex)
ex
- The exception that caused the transaction to rollback
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |