DatabaseReader
org.sdm.spa.DatabaseReader

This actor reads a SQL query string from its input and execute the query on the database specified by the <i>databaseURL<i> parameter. FIXME: need to pass all the possible types in the result set. FIXME: I am convinced that we should pass the db connection around if we need more than one db actors to connect to the same database. (the alternative is to combine DatabaseReader and DatabaseWriter to one class. but this makes the actor interface a little nasty...

Author(s): Yang Zhao
Version:$Id: DatabaseReader.doc.html,v 1.1 2006/02/22 18:40:26 mangal Exp $


querySQL
The input port for the SQL query string.
queryResultSet
The output port for the query result.
queryResultArray
The output port for the update result.


databaseURL
The URL of the database to query from. This parameter contains a StringToken.
refresh
The flag that indicates whether to reconnect to the database between each reading. This is a boolean, and defaults to false.