uk.org.ogsadai.client.toolkit.activity.sql
Class ResultSetActivityOutputConverter
java.lang.Object
|
+--uk.org.ogsadai.client.toolkit.activity.sql.ResultSetActivityOutputConverter
- public class ResultSetActivityOutputConverter
- extends java.lang.Object
Converts XML WebRowSet data to a ResultSet object.
- Author:
- The OGSA-DAI Project Team
|
Method Summary |
static java.sql.ResultSet |
convert(ActivityOutput output)
Converts an activity output to a forward-onlyResultSet. |
static java.sql.ResultSet |
convert(ActivityOutput output,
int resultSetType)
Converts an activity output to a ResultSet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSetActivityOutputConverter
public ResultSetActivityOutputConverter()
convert
public static java.sql.ResultSet convert(ActivityOutput output)
throws ActivityOutputException,
DataFormatException
- Converts an activity output to a forward-only
ResultSet.
The activity output must be an XML WebRowSet respresentation of a
relational database query result.
- Parameters:
output - output with the data to convert
- Returns:
- Forward-only
ResultSet representing the query
result that is in the give activity output
- Throws:
DataFormatException - If the output data is not in the expected format.
ActivityOutputException - If there is no output data.
convert
public static java.sql.ResultSet convert(ActivityOutput output,
int resultSetType)
throws ActivityOutputException,
DataFormatException
- Converts an activity output to a
ResultSet. The activity
output must be an XML WebRowSet respresentation of a relational database
query result.
- Parameters:
output - output with the data to convertresultSetType - one of ResultSet.TYPE_FORWARD_ONLY or
ResultSet.TYPE_SCROLL_INSENSITIVE
- Returns:
ResultSet representing the query result that is
in the given activity output, of the appropriate result set type
- Throws:
DataFormatException - If the output data is not in the expected format.
ActivityOutputException - If there is no output data.