com.rshtech.func
Interface UndoableFunction

All Superinterfaces:
Function
All Known Subinterfaces:
BusinessFunction
All Known Implementing Classes:
AbstractFunc

public interface UndoableFunction
extends Function

TODO Class summary sentence. Class documentation.

Version:
$Revision: 3127 $
Author:
$Author: kostya $

Method Summary
 boolean isUndone()
          Returns true is a function had undo() called on it.
 void undo()
          Undoes the function (if possible).
 
Methods inherited from interface com.rshtech.func.Function
execute, getResult
 

Method Detail

undo

void undo()
          throws ApplicationException
Undoes the function (if possible). Depending on the function and the implementation, this may actually undo work or rollback work, or it may signal wrapping contexts to perform the undo or rollback on behalf of the function.

Throws:
ApplicationException

isUndone

boolean isUndone()
Returns true is a function had undo() called on it. False means the function executed correctly.

Returns: