| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.sql.ResultSetActivityOutputConverter
Converts XML WebRowSet from an SQL activity or CSV data into a
 java.sql.ResultSet.
| Field Summary | |
| private static java.lang.String | COPYRIGHT_NOTICECopyright statement | 
| Constructor Summary | |
| ResultSetActivityOutputConverter() | |
| Method Summary | |
| static java.sql.ResultSet | convert(ActivityOutput output)Converts an activity output to a forward-only java.sql.ResultSet. | 
| static java.sql.ResultSet | convert(ActivityOutput output,
        int resultSetType)Converts an activity output to a java.sql.ResultSet. | 
| static java.sql.ResultSet | convertFromCSV(ActivityOutput output)Converts an activity output to a forward-only java.sql.ResultSet. | 
| static java.sql.ResultSet | convertFromCSV(ActivityOutput output,
               int resultSetType)Converts an activity output to a java.sql.ResultSet. | 
| static java.sql.ResultSet | convertFromCSV(ActivityOutput output,
               int resultSetType,
               CSVConfigurator configurator)Converts an activity output to a java.sql.ResultSet. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
private static final java.lang.String COPYRIGHT_NOTICE
| Constructor Detail | 
public ResultSetActivityOutputConverter()
| Method Detail | 
public static java.sql.ResultSet convert(ActivityOutput output)
                                  throws NoActivityOutputException,
                                         DataFormatException
java.sql.ResultSet. The activity
 output must be an XML WebRowSet representation of a relational
 database query result.
output - Output with the data to convert
ResultSet representing the
 query result that is in the give activity output.
NoActivityOutputException - if there is no output data or the data has not yet been
     processed to this output or the activity that generates
     this output has not yet been executed.
DataFormatException - if the output from the activity cannot be parsed into a
     ResultSet.
public static java.sql.ResultSet convert(ActivityOutput output,
                                         int resultSetType)
                                  throws NoActivityOutputException,
                                         DataFormatException
java.sql.ResultSet. The activity output must be an
 XML WebRowSet representation of a relational database query
 result.
output - Output with the data to convertresultSetType - One of ResultSet.TYPE_FORWARD_ONLY or
     ResultSet.TYPE_SCROLL_INSENSITIVE.
ResultSet of the requested type
 representing the query result that is in the give activity
 output.
java.lang.IllegalArgumentException - if resultSetType is not one of the two above.
NoActivityOutputException - if there is no output data or the data has not yet been
     processed to this output or the activity that generates
     this output has not yet been executed.
DataFormatException - if the output from the activity cannot be parsed into a
     ResultSet.
public static java.sql.ResultSet convertFromCSV(ActivityOutput output)
                                         throws NoActivityOutputException,
                                                DataFormatException
java.sql.ResultSet. The activity
 output must be a CSV representation of a relational
 database query result. This method assumes default
 CSV file format (delimiter=, lineBreak=CRLF nullDataStr=NULL).
output - Output with the data to convert
ResultSet representing the
 query result that is in the give activity output.
NoActivityOutputException - if there is no output data or the data has not yet been
     processed to this output or the activity that generates
     this output has not yet been executed.
DataFormatException - if the output from the activity cannot be parsed into a
     ResultSet.
public static java.sql.ResultSet convertFromCSV(ActivityOutput output,
                                                int resultSetType)
                                         throws NoActivityOutputException,
                                                DataFormatException
java.sql.ResultSet. The activity output must be a
 CSV representation of a database query result. This method
 assumes default CSV file format (delimiter=, lineBreak=CRLF
 nullDataStr=NULL).
output - Output with the data to convertresultSetType - One of ResultSet.TYPE_FORWARD_ONLY or
     ResultSet.TYPE_SCROLL_INSENSITIVE.
ResultSet of the requested type
 representing the query result that is in the give activity
 output.
java.lang.IllegalArgumentException - if resultSetType is not one of the two above.
NoActivityOutputException - if there is no output data or the data has not yet been
     processed to this output or the activity that generates
     this output has not yet been executed.
DataFormatException - if the output from the activity cannot be parsed into a
     ResultSet.
public static java.sql.ResultSet convertFromCSV(ActivityOutput output,
                                                int resultSetType,
                                                CSVConfigurator configurator)
                                         throws NoActivityOutputException,
                                                DataFormatException
java.sql.ResultSet. The activity output must be a
 CSV representation of a database query result. This method
 assumes default CSV file format (delimiter=, lineBreak=CRLF
 nullDataStr=NULL).
output - Output with the data to convertresultSetType - One of ResultSet.TYPE_FORWARD_ONLY or
     ResultSet.TYPE_SCROLL_INSENSITIVE.configurator - Description of the CSV format.
ResultSet of the requested type
 representing the query result that is in the give activity
 output.
java.lang.IllegalArgumentException - if resultSetType is not one of the two above.
NoActivityOutputException - if there is no output data or the data has not yet been
     processed to this output or the activity that generates
     this output has not yet been executed.
DataFormatException - if the output from the activity cannot be parsed into a
     ResultSet.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||