Activity - sqlQueryStatement

Activity Type: Relational

Description

Run an SQL query on a relational data resource.

Example

<sqlQueryStatement name="statement">
  <!-- value of first parameter -->
  <sqlParameter position="1" from="idvalue"/>
  <!-- value of second parameter -->
  <sqlParameter position="2">321</sqlParameter>
  <expression>
    select * from littleblackbook where id <= ? and id >= ?
  </expression>
  <webRowSetStream name="statementResponse"/>
</sqlQueryStatement>

Specification

Element sqlQueryStatement:

Warning to Service Deployers

Note that providing an SQL update statement will cause an exception to be thrown. If the database driver used by OGSA-DAI to communicate with the database supports read-only connections then the database will not be modified. If however, the driver does not support read-only connections then the database will be modified.

XML Schema

OGSA-DAI/schema/ogsadai/xsd/activities/sql_query_statement.xsd

Implementation

OGSA-DAI/src/java/activities/uk/org/ogsadai/activity/sql/SQLQueryStatementActivity.java