public class MethodExecutor
extends java.lang.Object
Application
object or by the
JotyServlet
object to work with the application Accessor
object.
Essentially made by its exec
method, this class uses the Java
Reflection to invoke a method defined in the Accessor implementation of the
application and specified in the BasicPostStatement
object passed as
parameter. It uses all the information of the BasicPostStatement instance relative
to the parameters of the stored method, to prepare the call to
java.lang.reflect.Method.invoke method and to compose, after the call, the
content of the m_returnedValues
member that has been mapped by the
constructor on the Vector of the calling environment.
The actual returned value of the store method is added as last value in the vector.
BasicPostStatement
,
Accessor
,
org.joty.workstation.app.Application#accessorMethodPostStatement
Modifier and Type | Field and Description |
---|---|
protected DbManager.DbConnectionGrabber |
m_dbConnGrabber |
Constructor and Description |
---|
MethodExecutor(Accessor accessor,
org.joty.common.ErrorCarrier errorCarrier,
java.util.Vector<java.lang.String> returnedValues,
DbManager.DbConnectionGrabber dbConnGrabber) |
Modifier and Type | Method and Description |
---|---|
boolean |
exec(org.joty.common.BasicPostStatement postedStmnt,
java.lang.Boolean atomic,
java.sql.Connection dbConn) |
protected DbManager.DbConnectionGrabber m_dbConnGrabber
public MethodExecutor(Accessor accessor, org.joty.common.ErrorCarrier errorCarrier, java.util.Vector<java.lang.String> returnedValues, DbManager.DbConnectionGrabber dbConnGrabber)