From: Anthony G. <ant...@gm...> - 2010-01-04 22:02:33
|
Hi Bryan, Secondly, and more importantly, is there any way to add additional elements > to the function block and be able to use those in the function definition? > I'll provide an example below. > Not as in your example. One way to do it is to define an extra optional input parameter and use either the default attribute or the description. e.g. <param name="sql-command" required="false" type="_text" default="select ..."> <description>The SQL command.</description> </param> Thirdly, is it possible to override the definition of the generated java > file for the function? > No but I would recommend to implement all the functions with Map outputSQL = SQLUtils.execute(request); BeansUtil.setParameters(outputSQL, successfulResult); return successfulResult; http://xins.sourceforge.net/docs/ar01s24.html another way is to create your own custom calling convention http://xins.sourceforge.net/primers/ccprimer.html have convertRequestImpl return _NoOp as function or your function (with an empty implementation) and have the SQL execution in convertResultImpl Best regards, Anthony |