|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.redstarhackers.func.AbstractFunc
TODO Class summary sentence. Class documentation.
| Constructor Summary | |
AbstractFunc(ApplicationTransaction apptxObj)
|
|
| Method Summary | |
protected abstract void |
doWork()
|
void |
execute()
Executes a unit of work, throwing any application or system exceptions that occur during execution. |
ApplicationTransaction |
getApplicationTransaction()
|
java.lang.Object |
getResult()
Returns the result of the unit of work, if any. |
boolean |
isUndone()
Returns true if the function was undone, false otherwise. |
protected void |
setResult(java.lang.Object obj)
Allows subclasses to set the result of their work (usually called in doWork()). |
void |
undo()
Undo the business function (marks the function as undone and defers to transactional containers or specific subclasses to take care of the rest). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.redstarhackers.func.BusinessFunction |
checkBusinessRules, checkSecurity, validate |
| Constructor Detail |
public AbstractFunc(ApplicationTransaction apptxObj)
| Method Detail |
public void undo()
undo in interface UndoableFunctionpublic boolean isUndone()
isUndone in interface UndoableFunction
public void execute()
throws ApplicationException,
SystemException
Function
execute in interface FunctionSystemException - if any system exception occurs.
ApplicationException - if any application exception occurs.public ApplicationTransaction getApplicationTransaction()
public java.lang.Object getResult()
Function
getResult in interface Function
protected abstract void doWork()
throws ApplicationException,
SystemException
ApplicationException
SystemExceptionprotected void setResult(java.lang.Object obj)
obj - the new result for the function.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||