|
|||||||||||
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.RequestComponent | +--uk.org.ogsadai.client.toolkit.activity.Activity | +--uk.org.ogsadai.client.toolkit.activity.sql.CSV
This activity converts the output of SQL activities that produce
java.sql.ResultSet
objects into CSV format.
The activity has one input - the ResultSet
- and one
output - the CSV format.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private CSVConfigurator |
mConfigurator
CSV file format configurator |
private int |
mResultSetType
Type of ResultSet s generated using this class |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
CSV(ActivityOutput input)
Convert the ResultSet from the given activity
output into CSV. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output - the XML WebRowSet. |
java.sql.ResultSet |
getResultSet()
Get the WebRowSet XML output from this activity and convert it into a ResultSet of type specified by
getResultSetType . |
int |
getResultSetType()
Return the type of ResultSet
objects the getResultSet method returns. |
void |
setConfigurator(CSVConfigurator configurator)
Set the CSV file format configurator. |
void |
setInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the ResultSet data. |
void |
setResultSetType(int resultSetType)
Set the type of ResultSet objects the
getResultSet method returns. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
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
private int mResultSetType
ResultSet
s generated using this class
private CSVConfigurator mConfigurator
Constructor Detail |
public CSV(ActivityOutput input)
ResultSet
from the given activity
output into CSV.
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.Method Detail |
public final void setInput(ActivityOutput input)
ResultSet
data.
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.public int getResultSetType()
ResultSet
objects the getResultSet
method returns.
ResultSet
typepublic void setResultSetType(int resultSetType)
ResultSet
objects the
getResultSet
method returns.
resultSetType
- Either of ResultSet.TYPE_FORWARD_ONLY
or
ResultSet.TYPE_SCROLL_INSENSITIVE
.
java.lang.IllegalArgumentException
- if resultSetType
is not one of the two above.public java.sql.ResultSet getResultSet() throws NoActivityOutputException, DataFormatException
ResultSet
of type specified by
getResultSetType
.
ResultSet
containing query result.
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 ActivityOutput getOutput()
public void setConfigurator(CSVConfigurator configurator)
configurator
- CSV file format configurator.
java.lang.IllegalArgumentException
- If configurator
is null
.protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |