org.springframework.jdbc.core
Class ResultSetSupportingSqlParameter

java.lang.Object
  extended byorg.springframework.jdbc.core.SqlParameter
      extended byorg.springframework.jdbc.core.ResultSetSupportingSqlParameter
Direct Known Subclasses:
SqlOutParameter, SqlReturnResultSet

public class ResultSetSupportingSqlParameter
extends SqlParameter

Common base class for ResultSet-supporting SqlParameters like SqlOutParameter and SqlReturnResultSet.

Since:
26.05.2004
Author:
Juergen Hoeller
See Also:
SqlOutParameter, SqlReturnResultSet

Constructor Summary
ResultSetSupportingSqlParameter(String name, int type)
          Create a new ResultSetSupportingSqlParameter, supplying name and SQL type.
ResultSetSupportingSqlParameter(String name, int type, ResultSetExtractor resultSetExtractor)
           
ResultSetSupportingSqlParameter(String name, int type, RowCallbackHandler rch)
           
ResultSetSupportingSqlParameter(String name, int type, RowMapper rm)
           
ResultSetSupportingSqlParameter(String name, int type, RowMapper rm, int rowsExpected)
           
ResultSetSupportingSqlParameter(String name, int type, String typeName)
           
 
Method Summary
protected  ResultSetExtractor getResultSetExtractor()
           
protected  RowCallbackHandler getRowCallbackHandler()
          Return a new instance of the implementation of a RowCallbackHandler, usable for returned ResultSets.
 boolean isResultSetSupported()
           
protected  boolean 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

ResultSetSupportingSqlParameter

public ResultSetSupportingSqlParameter(String name,
                                       int type)
Create a new ResultSetSupportingSqlParameter, supplying name and SQL type.

Parameters:
name - name of the parameter, as used in input and output maps
type - SQL type of the parameter according to java.sql.Types

ResultSetSupportingSqlParameter

public ResultSetSupportingSqlParameter(String name,
                                       int type,
                                       String typeName)

ResultSetSupportingSqlParameter

public ResultSetSupportingSqlParameter(String name,
                                       int type,
                                       ResultSetExtractor resultSetExtractor)

ResultSetSupportingSqlParameter

public ResultSetSupportingSqlParameter(String name,
                                       int type,
                                       RowCallbackHandler rch)

ResultSetSupportingSqlParameter

public ResultSetSupportingSqlParameter(String name,
                                       int type,
                                       RowMapper rm)

ResultSetSupportingSqlParameter

public ResultSetSupportingSqlParameter(String name,
                                       int type,
                                       RowMapper rm,
                                       int rowsExpected)
Method Detail

isResultSetSupported

public boolean isResultSetSupported()

isRowCallbackHandlerSupported

protected boolean isRowCallbackHandlerSupported()

getResultSetExtractor

protected ResultSetExtractor getResultSetExtractor()

getRowCallbackHandler

protected RowCallbackHandler getRowCallbackHandler()
Return a new instance of the implementation of a RowCallbackHandler, usable for returned ResultSets. This implementation invokes a given RowMapper via the RowMapperResultReader adapter, respectively returns a given RowCallbackHandler directly.

See Also:
RowMapperResultReader


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