站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

SqlOutParameter (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.jdbc.core
Class SqlOutParameter

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

public class SqlOutParameter
extends ResultSetSupportingSqlParameter

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, Juergen Hoeller
See Also:
SqlReturnResultSet

Constructor Summary
SqlOutParameter(String name, int sqlType)
          Create a new SqlOutParameter.
SqlOutParameter(String name, int sqlType, ResultSetExtractor rse)
          Create a new SqlOutParameter.
SqlOutParameter(String name, int sqlType, RowCallbackHandler rch)
          Create a new SqlOutParameter.
SqlOutParameter(String name, int sqlType, RowMapper rm)
          Create a new SqlOutParameter.
SqlOutParameter(String name, int sqlType, RowMapper rm, int rowsExpected)
          Create a new SqlOutParameter.
SqlOutParameter(String name, int sqlType, String typeName)
          Create a new SqlOutParameter.
SqlOutParameter(String name, int sqlType, String typeName, SqlReturnType sqlReturnType)
          Create a new SqlOutParameter.
 
Method Summary
 SqlReturnType getSqlReturnType()
          Return the custom return type, if any.
 boolean isReturnTypeSupported()
          Return whether this parameter holds a custom return type.
 
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

SqlOutParameter

public SqlOutParameter(String name,
                       int sqlType)
Create a new SqlOutParameter.

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

SqlOutParameter

public SqlOutParameter(String name,
                       int sqlType,
                       String typeName)
Create a new SqlOutParameter.

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

SqlOutParameter

public SqlOutParameter(String name,
                       int sqlType,
                       String typeName,
                       SqlReturnType sqlReturnType)
Create a new SqlOutParameter.

Parameters:
name - name of the parameter, as used in input and output maps
sqlType - SQL type of the parameter according to java.sql.Types
typeName - the type name of the parameter (optional)
sqlReturnType - custom value handler for complex type (optional)

SqlOutParameter

public SqlOutParameter(String name,
                       int sqlType,
                       ResultSetExtractor rse)
Create a new SqlOutParameter.

Parameters:
name - name of the parameter, as used in input and output maps
sqlType - SQL type of the parameter according to java.sql.Types
rse - ResultSetExtractor to use for parsing the ResultSet

SqlOutParameter

public SqlOutParameter(String name,
                       int sqlType,
                       RowCallbackHandler rch)
Create a new SqlOutParameter.

Parameters:
name - name of the parameter, as used in input and output maps
sqlType - SQL type of the parameter according to java.sql.Types
rch - RowCallbackHandler to use for parsing the ResultSet

SqlOutParameter

public SqlOutParameter(String name,
                       int sqlType,
                       RowMapper rm)
Create a new SqlOutParameter.

Parameters:
name - name of the parameter, as used in input and output maps
sqlType - SQL type of the parameter according to java.sql.Types
rm - RowMapper to use for parsing the ResultSet

SqlOutParameter

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

Parameters:
name - name of the parameter, as used in input and output maps
sqlType - SQL type of the parameter according to java.sql.Types
rm - RowMapper to use for parsing the ResultSet
rowsExpected - number of expected rows
Method Detail

isReturnTypeSupported

public boolean isReturnTypeSupported()
Return whether this parameter holds a custom return type.


getSqlReturnType

public SqlReturnType getSqlReturnType()
Return the custom return type, if any.



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