|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface that all mapping functions which work off of returned values from stored procedure calls must implement.
Implementing classes process the returned values according to the argument parameter Map
which contains the specific information used to manipulate and transform the data into dataseries or table information.
The implementing class must designate whether the process(java.lang.Object[], java.util.Map)
method returns information for a dataseries or a table, by returning a value of true for one and only one of the
hasDataseriesOutput() and
hasTableOutput() methods
| Method Summary | |
boolean |
hasDataseriesOutput()
Returns true if the return value from the process(java.lang.Object[], java.util.Map) method
contains data suitable for constructing a dataseries. |
boolean |
hasTableOutput()
Returns true if the return value from the process(java.lang.Object[], java.util.Map) method
contains data suitable for constructing a table. |
java.util.List[] |
process(java.lang.Object[] returnVals,
java.util.Map parameters)
Processes a the return values of a stored procedure call according to the parameters specified in the argument Map |
| Method Detail |
public boolean hasDataseriesOutput()
true if the return value from the process(java.lang.Object[], java.util.Map) method
contains data suitable for constructing a dataseries. The first element of the array would be a list of names of the dataseries.
Each subsequent element of the returned array would represent a dataseries.
The List preserves the order of the data, and each element of the List would contain Map objects.
The Map would contain attribute keys such as xMin, xMax, yMin, yMax, xMinLabel, xMaxLabel, yMinLabel, yMaxLabel
true if the return value of the StoredProcedureMappingFunction#process(java.lang.Object[], java.util.Map) method contains dataseries information; false otherwise.public boolean hasTableOutput()
true if the return value from the process(java.lang.Object[], java.util.Map) method
contains data suitable for constructing a table. The first element of the array would be a list of column headings of the data table.
Each subsequent element of the returned array would represent a table row.
Within each table row would be a list representing each column of that row.
Within each column would be an object array, with the zero-index element being the data for that row-column pair,
and the one-index element being the decorator to apply to that row-column pair.
true if the return value of the StoredProcedureMappingFunction#process(java.lang.Object[], java.util.Map) method contains table information; false otherwise.
public java.util.List[] process(java.lang.Object[] returnVals,
java.util.Map parameters)
Map
returnVals - the array of returned parameters from a stored procedure. If any ResultSets are returned as non-output parameters,
they are added to the beginning of the array, in the order in which they are served up. The array elements are ordered according to the stored procedure call that obtained themparameters - the mapping parameters by which to manipulate the returned values
List objects containing the mapped elements of the processed data.
The details of the List contents are described by the ResultSetMappingFunction.hasDataseriesOutput() and
ResultSetMappingFunction.hasTableOutput() methods.ResultSetMappingFunction.hasDataseriesOutput(),
ResultSetMappingFunction.hasTableOutput()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||