|
|||||||||||
| 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.ParameterizedActivity
|
+--uk.org.ogsadai.client.toolkit.activity.sql.SQLStoredProcedure
This activity evaluates a stored procedure within a relational database. A stored procedure may generate a result set, multiple result sets, an update count or no result data at all. This activity has no inputs and one output. The format of the output data depends on the behaviour of the stored procedure, so it may contain any of the following:
| Constructor Summary | |
SQLStoredProcedure(java.lang.String procedureName)
Constructs activity to execute the named stored procedure. |
|
| Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
int |
getModifiedRowsCount()
Gets the update count returned by the stored procedure. |
ActivityOutput |
getOutput()
Gets the activity's only output. |
java.lang.String |
getProcedureName()
Gets the SQL stored procedure name. |
java.sql.ResultSet |
getResultSet()
Gets the result set containing the result of executing the stored procedure. |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.ParameterizedActivity |
clearParameters, generateParametersXML, setParameter, setParameter |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getDataServiceStub, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setDataServiceStub, setInput |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLStoredProcedure(java.lang.String procedureName)
setParameter method.
procedureName - name of the stored procedure to execute| Method Detail |
public java.lang.String getProcedureName()
public java.sql.ResultSet getResultSet()
throws ActivityOutputException,
DataFormatException
Not there is no guarantee that the store procedure does return a single
result set in which case the DataFormatException exception
will be thrown.
ResultSet containing result of executing the
stored procedure.
DataFormatException - If the output data is not in the single WebRowSet format.
ActivityOutputException - If there is no output data.
public int getModifiedRowsCount()
throws ActivityOutputException,
DataFormatException
Not there is no guarantee that the stored procedure does return an update
count in which case the DataFormatException exception will
be thrown.
ActivityOutputException
DataFormatExceptionpublic ActivityOutput getOutput()
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 | ||||||||||