|
|||||||||||
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
java.sql.ResultSet
, multiple ResultSet
s,
an update count or no result data at all.
This activity has no inputs and one output - the result of the stored procedure.
The format of the output data depends on the behaviour of the stored procedure, so it may contain any of the following:
See SQLQuery
for information on handling
ResultSet
outputs from activities.
SQLQuery
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.util.Map |
mOutParams
OUT parameter types |
private java.lang.String |
mProcedureName
SQL stored procedure name |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.ParameterizedActivity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
SQLStoredProcedure(java.lang.String procedureName)
Constructs activity to execute the named stored procedure. |
Method Summary | |
private void |
generateOutParametersXML(java.lang.StringBuffer buf)
Add XML fragments for the stored procedure's output parameters to the internal representation of the request fragment for this activity. |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output. |
java.lang.String |
getProcedureName()
Gets the SQL stored procedure name. |
void |
registerOutParameter(int position,
int type)
Register an OUT parameter of the stored procedure. |
void |
setStoredProcedure(java.lang.String procedureName)
Sets the SQL stored procedure name. |
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, 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 java.lang.String mProcedureName
private java.util.Map mOutParams
Constructor Detail |
public SQLStoredProcedure(java.lang.String procedureName)
setParameter
method.
procedureName
- Name of the stored procedure to execute.
java.lang.IllegalArgumentException
- If procedureName
is null
.Method Detail |
public void setStoredProcedure(java.lang.String procedureName)
procedureName
- Stored procedure name.
java.lang.IllegalArgumentException
- If procedureName
is null
.public java.lang.String getProcedureName()
public void registerOutParameter(int position, int type)
position
- The position of the parameter.type
- JDBC type (as in java.sql.Types
) of the
parameterpublic ActivityOutput getOutput()
protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
private void generateOutParametersXML(java.lang.StringBuffer buf)
buf
- Buffer holding internal representation of request
fragment.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |