uk.org.ogsadai.activity.sql.csv
Class CSVQueryStatementActivity

java.lang.Object
  |
  +--uk.org.ogsadai.activity.Activity
        |
        +--uk.org.ogsadai.activity.sql.AbstractSQLActivity
              |
              +--uk.org.ogsadai.activity.sql.AbstractParameterisedSQLActivity
                    |
                    +--uk.org.ogsadai.activity.sql.SQLQueryStatementActivity
                          |
                          +--uk.org.ogsadai.activity.sql.csv.CSVQueryStatementActivity

public class CSVQueryStatementActivity
extends SQLQueryStatementActivity

Executes SQL query statements on a CSV data resource.

Author:
The OGSA-DAI team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
 
Fields inherited from class uk.org.ogsadai.activity.sql.SQLQueryStatementActivity
 
Fields inherited from class uk.org.ogsadai.activity.sql.AbstractParameterisedSQLActivity
mParameters
 
Fields inherited from class uk.org.ogsadai.activity.sql.AbstractSQLActivity
CREATE_DATABASE, DROP_DATABASE, EXPRESSION, mCredentials, mDataResource, mExpression, mInputStreamNames, mOutput, mStatement, RESULT_STREAM, SQL_OUT_PARAMETERS, SQL_PARAMETERS, STORED_PROCEDURE, WEB_ROW_SET_STREAM
 
Fields inherited from class uk.org.ogsadai.activity.Activity
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs
 
Constructor Summary
CSVQueryStatementActivity(org.w3c.dom.Element element)
           
 
Method Summary
protected  void parseSQLParameters(org.w3c.dom.NodeList nodes)
          This method will find the SQL parameters appropriate for this activity if any are specified.
 
Methods inherited from class uk.org.ogsadai.activity.sql.SQLQueryStatementActivity
cleanUp, processBlock, processFirst
 
Methods inherited from class uk.org.ogsadai.activity.sql.AbstractParameterisedSQLActivity
initialise, initialiseInputStreamNames
 
Methods inherited from class uk.org.ogsadai.activity.sql.AbstractSQLActivity
createOutputPipe, parseExpression, parseResultStream
 
Methods inherited from class uk.org.ogsadai.activity.Activity
connectsTo, getActivityConfiguration, getActivityName, getCause, getName, getObservableStatus, getProperties, getSession, getStatus, hasActivityConfiguration, hasProperties, process, setActivityName, setCompleted, setError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values
Constructor Detail

CSVQueryStatementActivity

public CSVQueryStatementActivity(org.w3c.dom.Element element)
                          throws ActivitySpecificationException,
                                 ActivityCreationException
Method Detail

parseSQLParameters

protected void parseSQLParameters(org.w3c.dom.NodeList nodes)
                           throws ActivitySpecificationException
Description copied from class: AbstractParameterisedSQLActivity
This method will find the SQL parameters appropriate for this activity if any are specified.

These SQL parameters could be values or the names of output streams of other activities.

If no parameters are found then the internal SQL statement object is just set to be a simple SQL statement (SQLStatement) else it will be set to a ParameterisedSQLStatement).

Overrides:
parseSQLParameters in class AbstractParameterisedSQLActivity
Parameters:
nodes - A collection of elements each assumed to have name sqlParameter.
Throws:
ActivitySpecificationException - If SQL parameter is out of range or specified twice, or a parameter's value is missing or both a parameter value and an input stream have been specified.