类 ResultSetSupportingSqlParameter
- java.lang.Object
- org.springframework.jdbc.core.SqlParameter
- org.springframework.jdbc.core.ResultSetSupportingSqlParameter
- 直接已知子类:
SqlOutParameter
,SqlReturnResultSet
public class ResultSetSupportingSqlParameter extends SqlParameter
Common base class for ResultSet-supporting SqlParameters likeSqlOutParameter
andSqlReturnResultSet
.- 从以下版本开始:
- 1.0.2
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 ResultSetSupportingSqlParameter(String name, int sqlType)
Create a new ResultSetSupportingSqlParameter.ResultSetSupportingSqlParameter(String name, int sqlType, int scale)
Create a new ResultSetSupportingSqlParameter.ResultSetSupportingSqlParameter(String name, int sqlType, String typeName)
Create a new ResultSetSupportingSqlParameter.ResultSetSupportingSqlParameter(String name, int sqlType, ResultSetExtractor<?> rse)
Create a new ResultSetSupportingSqlParameter.ResultSetSupportingSqlParameter(String name, int sqlType, RowCallbackHandler rch)
Create a new ResultSetSupportingSqlParameter.ResultSetSupportingSqlParameter(String name, int sqlType, RowMapper<?> rm)
Create a new ResultSetSupportingSqlParameter.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ResultSetExtractor<?>
getResultSetExtractor()
Return the ResultSetExtractor held by this parameter, if any.RowCallbackHandler
getRowCallbackHandler()
Return the RowCallbackHandler held by this parameter, if any.RowMapper<?>
getRowMapper()
Return the RowMapper held by this parameter, if any.boolean
isInputValueProvided()
This implementation always returnsfalse
.boolean
isResultSetSupported()
Does this parameter support a ResultSet, i.e. does it hold a ResultSetExtractor, RowCallbackHandler or RowMapper?从类继承的方法 org.springframework.jdbc.core.SqlParameter
getName, getScale, getSqlType, getTypeName, isResultsParameter, sqlTypesToAnonymousParameterList
构造器详细资料
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name, int sqlType)
Create a new ResultSetSupportingSqlParameter.- 参数:
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.Types
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name, int sqlType, int scale)
Create a new ResultSetSupportingSqlParameter.- 参数:
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.Typesscale
- the number of digits after the decimal point (for DECIMAL and NUMERIC types)
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name, int sqlType, String typeName)
Create a new ResultSetSupportingSqlParameter.- 参数:
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.TypestypeName
- the type name of the parameter (optional)
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name, int sqlType, ResultSetExtractor<?> rse)
Create a new ResultSetSupportingSqlParameter.- 参数:
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.Typesrse
- ResultSetExtractor to use for parsing the ResultSet
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name, int sqlType, RowCallbackHandler rch)
Create a new ResultSetSupportingSqlParameter.- 参数:
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.Typesrch
- RowCallbackHandler to use for parsing the ResultSet
ResultSetSupportingSqlParameter
public ResultSetSupportingSqlParameter(String name, int sqlType, RowMapper<?> rm)
Create a new ResultSetSupportingSqlParameter.- 参数:
name
- name of the parameter, as used in input and output mapssqlType
- SQL type of the parameter according to java.sql.Typesrm
- RowMapper to use for parsing the ResultSet
方法详细资料
isResultSetSupported
public boolean isResultSetSupported()
Does this parameter support a ResultSet, i.e. does it hold a ResultSetExtractor, RowCallbackHandler or RowMapper?
getResultSetExtractor
public ResultSetExtractor<?> getResultSetExtractor()
Return the ResultSetExtractor held by this parameter, if any.
getRowCallbackHandler
public RowCallbackHandler getRowCallbackHandler()
Return the RowCallbackHandler held by this parameter, if any.
getRowMapper
public RowMapper<?> getRowMapper()
Return the RowMapper held by this parameter, if any.
isInputValueProvided
public boolean isInputValueProvided()
This implementation always returnsfalse
.- 覆盖:
isInputValueProvided
在类中SqlParameter