Creating a method wrapping for Single SQL Query
Sometimes it can be desirable to present data directly from a database through a web service. This can be useful if you have an application that does not provide any APIs or support for web services. To handle this scenario, M3 Web Services provides a web service wrapper over JDBC based SQL statements.
Note: This is an advanced feature, and knowledge of both
SQL and the database model of the database being accessed are required.
In JDBC, SQL statement input parameters are mapped to the question marks in the statement. The number and order of the input parameters should always match the number of question marks.
SELECT OrderNo FROM Orders WHERE Date > ?
Note: This requires that the input parameter representing
the date is added to the list of input parameters.