|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jcreme.sql.CremeAction
This class enables to store a method call on an object. In particular it can be used to store a call that is to be performed in a part that has no other access to the subject object and has no knowledge (at compile time) of the method to call.
| Constructor Summary | |
CremeAction(java.lang.reflect.Method method)
Creates a new CremeAction |
|
| Method Summary | |
java.lang.Object |
getResult()
Gives access to the result of the previous invocation. |
boolean |
isSuccessfull()
Gives access to the status of the previous invocation. |
boolean |
runAction()
This method makes the call of the method on the current subject with the current parameters. |
void |
setParameters(java.lang.Object[] params)
Enables to set the parameters of the method call. |
void |
setSubject(java.lang.Object obj)
Enables to set the subject of the method call. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CremeAction(java.lang.reflect.Method method)
throws java.lang.IllegalArgumentException
method - the method that will be called from this CremeAction.
java.lang.IllegalArgumentException - if the method parameter is null.| Method Detail |
public void setSubject(java.lang.Object obj)
obj - the subject of the call.public void setParameters(java.lang.Object[] params)
params - the parameters of the call.
public boolean runAction()
throws java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException - if the current subject is not valid for this call.public java.lang.Object getResult()
public boolean isSuccessfull()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||