org.springframework.jdbc.core
Class SqlReturnResultSet

java.lang.Object
  extended by org.springframework.jdbc.core.SqlParameter
      extended by org.springframework.jdbc.core.ResultSetSupportingSqlParameter
          extended by org.springframework.jdbc.core.SqlReturnResultSet

public class SqlReturnResultSet
extends ResultSetSupportingSqlParameter

Represents a returned 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.

Author:
Thomas Risberg, Juergen Hoeller

Constructor Summary
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.
SqlReturnResultSet(String name, RowMapper rm, int rowsExpected)
          Create a new SqlReturnResultSet.
 
Method Summary
 
Methods inherited from class org.springframework.jdbc.core.ResultSetSupportingSqlParameter
getResultSetExtractor, getRowCallbackHandler, isResultSetSupported, isRowCallbackHandlerSupported
 
Methods inherited from class org.springframework.jdbc.core.SqlParameter
getName, getSqlType, getTypeName, sqlTypesToAnonymousParameterList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlReturnResultSet

public SqlReturnResultSet(String name,
                          ResultSetExtractor extractor)
Create a new instance of the SqlReturnResultSet class.

Parameters:
name - name of the parameter, as used in input and output maps
extractor - ResultSetExtractor to use for parsing the ResultSet

SqlReturnResultSet

public SqlReturnResultSet(String name,
                          RowCallbackHandler handler)
Create a new instance of the SqlReturnResultSet class.

Parameters:
name - name of the parameter, as used in input and output maps
handler - RowCallbackHandler to use for parsing the ResultSet

SqlReturnResultSet

public SqlReturnResultSet(String name,
                          RowMapper mapper)
Create a new instance of the SqlReturnResultSet class.

Parameters:
name - name of the parameter, as used in input and output maps
mapper - RowMapper to use for parsing the ResultSet

SqlReturnResultSet

public SqlReturnResultSet(String name,
                          RowMapper rm,
                          int rowsExpected)
Create a new SqlReturnResultSet.

Parameters:
name - name of the parameter, as used in input and output maps
rm - RowMapper to use for parsing the ResultSet
rowsExpected - number of expected rows


Copyright (c) 2002-2007 The Spring Framework Project.