public class PostStatement
extends org.joty.common.BasicPostStatement
The specificity of the implementation is the support of both the sides,
Application instance and Joty Server, for the life of the Accessor instance.
In collaboration with the Accessor class and the ParamContext
class
(and the MethodExecutor
class, too, for a stored method invocation),
the PostStatement class performs some sort of mirror of the communication
with server when the mode of running is local and the Accessor object lives
inside the Application object. This is the core of Joty 2.0: not only the
technology allows to switch, after the test has been made locally, to the web
mode, but, by the use of the Accessor object, it allows that the switch of
the running mode is made with the transfer of an entire business object to
the server side, after this object has been tested locally: "locally" means
without the JotyServer and, indeed, the servlet container running.
Accessor
,
org.joty.workstation.app.Application
,
ParamContext
,
MethodExecutor
m_AccessorContext, m_autoId, m_dataPanelIdx, m_firstOutParamPos, m_genTable, m_items, m_iteration, m_mainFilter, m_method, m_nonManagedRollbackActionIden, m_outParamsQty, m_paramContext, m_returnedValues, m_returnedValuesMap, m_retVal, m_sortExpr, m_sql, m_termName, m_verifyExpr
Constructor and Description |
---|
PostStatement(org.joty.common.JotyMessenger jotyMessanger) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getQueryFromDataDef(Accessor.DataDef dataDef,
Accessor accessor)
This inner class contains in a textual form a value compatible with the
datum wrapped by the
WrappedField object or the value of a ContextParam object. |
void |
loadParamContext(org.joty.common.ParamContext paramContext,
boolean clearFirst) |
java.lang.String |
nameSubst(Accessor accessor,
java.lang.String sql) |
public java.lang.String getQueryFromDataDef(Accessor.DataDef dataDef, Accessor accessor)
WrappedField
object or the value of a ContextParam
object.public void loadParamContext(org.joty.common.ParamContext paramContext, boolean clearFirst)
public java.lang.String nameSubst(Accessor accessor, java.lang.String sql)