org.springframework.jdbc.core
Class SqlReturnResultSet

java.lang.Object
  extended byorg.springframework.jdbc.core.SqlParameter
      extended byorg.springframework.jdbc.core.SqlReturnResultSet

public class SqlReturnResultSet
extends SqlParameter

Subclass of SqlParameter to represent a returned resultset from a stored procedure call.

Must declare a RowCallbackHandler to handle any returned rows. No additional properties: instanceof will be used to check for such types.

Output parameters - like all stored procedure parameters - must have names.

Author:
Thomas Risberg

Nested Class Summary
 
Nested classes inherited from class org.springframework.jdbc.core.SqlParameter
SqlParameter.ResultReaderStoredProcImpl
 
Constructor Summary
SqlReturnResultSet(java.lang.String name, RowCallbackHandler rch)
           
SqlReturnResultSet(java.lang.String name, RowMapper rm)
           
SqlReturnResultSet(java.lang.String name, RowMapper rm, int rowsExpected)
           
 
Method Summary
 RowCallbackHandler getRowCallbackHandler()
           
 boolean isRowMapperSupported()
           
protected  ResultReader newResultReader()
          Return new instance of the implementation of a ResultReader usable for returned resultsets.
 
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(java.lang.String name,
                          RowCallbackHandler rch)

SqlReturnResultSet

public SqlReturnResultSet(java.lang.String name,
                          RowMapper rm,
                          int rowsExpected)

SqlReturnResultSet

public SqlReturnResultSet(java.lang.String name,
                          RowMapper rm)
Method Detail

getRowCallbackHandler

public RowCallbackHandler getRowCallbackHandler()

isRowMapperSupported

public boolean isRowMapperSupported()

newResultReader

protected final ResultReader newResultReader()
Return new instance of the implementation of a ResultReader usable for returned resultsets. This implementation invokes the RowMapper's implementation of the mapRow() method.



Copyright (C) 2003-2004 The Spring Framework Project.