org.springframework.jdbc.core
Class SqlOutParameter

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

public class SqlOutParameter
extends SqlParameter

Subclass of SqlParameter to represent an output parameter. No additional properties: instanceof will be used to check for such types.

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

Author:
Rod Johnson, Thomas Risberg

Nested Class Summary
 
Nested classes inherited from class org.springframework.jdbc.core.SqlParameter
SqlParameter.ResultReaderStoredProcImpl
 
Constructor Summary
SqlOutParameter(java.lang.String name, int type)
          Create a new OutputParameter, supplying name and SQL type
SqlOutParameter(java.lang.String name, int type, RowCallbackHandler rch)
           
SqlOutParameter(java.lang.String name, int type, RowMapper rm)
           
SqlOutParameter(java.lang.String name, int type, RowMapper rm, int rowsExpected)
           
SqlOutParameter(java.lang.String name, int type, java.lang.String typeName)
           
 
Method Summary
 RowCallbackHandler getRowCallbackHandler()
           
 boolean isResultSetSupported()
           
 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

SqlOutParameter

public SqlOutParameter(java.lang.String name,
                       int type)
Create a new OutputParameter, 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

SqlOutParameter

public SqlOutParameter(java.lang.String name,
                       int type,
                       java.lang.String typeName)

SqlOutParameter

public SqlOutParameter(java.lang.String name,
                       int type,
                       RowCallbackHandler rch)

SqlOutParameter

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

SqlOutParameter

public SqlOutParameter(java.lang.String name,
                       int type,
                       RowMapper rm)
Method Detail

isResultSetSupported

public boolean isResultSetSupported()

isRowMapperSupported

public boolean isRowMapperSupported()

getRowCallbackHandler

public RowCallbackHandler getRowCallbackHandler()

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.