public class SqlReturnResultSet extends ResultSetSupportingSqlParameter
ResultSet
from a stored procedure call.
A ResultSetExtractor
, RowCallbackHandler
or RowMapper
must be provided to handle any returned rows.
Returned ResultSets
- like all stored procedure
parameters - must have names.
Constructor and Description |
---|
SqlReturnResultSet(String name,
ResultSetExtractor<?> extractor)
Create a new instance of the
SqlReturnResultSet class. |
SqlReturnResultSet(String name,
RowCallbackHandler handler)
Create a new instance of the
SqlReturnResultSet class. |
SqlReturnResultSet(String name,
RowMapper<?> mapper)
Create a new instance of the
SqlReturnResultSet class. |
Modifier and Type | Method and Description |
---|---|
boolean |
isResultsParameter()
This implementation always returns
true . |
getResultSetExtractor, getRowCallbackHandler, getRowMapper, isInputValueProvided, isResultSetSupported
getName, getScale, getSqlType, getTypeName, sqlTypesToAnonymousParameterList
public SqlReturnResultSet(String name, ResultSetExtractor<?> extractor)
SqlReturnResultSet
class.name
- the name of the parameter, as used in input and output mapsextractor
- the ResultSetExtractor
to use for parsing the ResultSet
public SqlReturnResultSet(String name, RowCallbackHandler handler)
SqlReturnResultSet
class.name
- the name of the parameter, as used in input and output mapshandler
- the RowCallbackHandler
to use for parsing the ResultSet
public SqlReturnResultSet(String name, RowMapper<?> mapper)
SqlReturnResultSet
class.public boolean isResultsParameter()
true
.isResultsParameter
in class SqlParameter