类 SqlInOutParameter
- java.lang.Object
- org.springframework.jdbc.core.SqlParameter
- org.springframework.jdbc.core.ResultSetSupportingSqlParameter
- org.springframework.jdbc.core.SqlOutParameter
- org.springframework.jdbc.core.SqlInOutParameter
public class SqlInOutParameter extends SqlOutParameter
Subclass ofSqlOutParameter
to represent an INOUT parameter. Will returntrue
for SqlParameter'sisInputValueProvided()
test, in contrast to a standard SqlOutParameter.Output parameters - like all stored procedure parameters - must have names.
- 从以下版本开始:
- 2.0
- 作者:
- Thomas Risberg, Juergen Hoeller
构造器概要
构造器 构造器 说明 SqlInOutParameter(String name, int sqlType)
Create a new SqlInOutParameter.SqlInOutParameter(String name, int sqlType, int scale)
Create a new SqlInOutParameter.SqlInOutParameter(String name, int sqlType, String typeName)
Create a new SqlInOutParameter.SqlInOutParameter(String name, int sqlType, String typeName, SqlReturnType sqlReturnType)
Create a new SqlInOutParameter.SqlInOutParameter(String name, int sqlType, ResultSetExtractor<?> rse)
Create a new SqlInOutParameter.SqlInOutParameter(String name, int sqlType, RowCallbackHandler rch)
Create a new SqlInOutParameter.SqlInOutParameter(String name, int sqlType, RowMapper<?> rm)
Create a new SqlInOutParameter.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
isInputValueProvided()
This implementation always returnstrue
.从类继承的方法 org.springframework.jdbc.core.SqlOutParameter
getSqlReturnType, isReturnTypeSupported
从类继承的方法 org.springframework.jdbc.core.ResultSetSupportingSqlParameter
getResultSetExtractor, getRowCallbackHandler, getRowMapper, isResultSetSupported
从类继承的方法 org.springframework.jdbc.core.SqlParameter
getName, getScale, getSqlType, getTypeName, isResultsParameter, sqlTypesToAnonymousParameterList
构造器详细资料
SqlInOutParameter
public SqlInOutParameter(String name, int sqlType)
Create a new SqlInOutParameter.- 参数:
name
- the name of the parameter, as used in input and output mapssqlType
- the parameter SQL type according tojava.sql.Types
SqlInOutParameter
public SqlInOutParameter(String name, int sqlType, int scale)
Create a new SqlInOutParameter.- 参数:
name
- the name of the parameter, as used in input and output mapssqlType
- the parameter SQL type according tojava.sql.Types
scale
- the number of digits after the decimal point (for DECIMAL and NUMERIC types)
SqlInOutParameter
public SqlInOutParameter(String name, int sqlType, String typeName)
Create a new SqlInOutParameter.- 参数:
name
- the name of the parameter, as used in input and output mapssqlType
- the parameter SQL type according tojava.sql.Types
typeName
- the type name of the parameter (optional)
SqlInOutParameter
public SqlInOutParameter(String name, int sqlType, String typeName, SqlReturnType sqlReturnType)
Create a new SqlInOutParameter.- 参数:
name
- the name of the parameter, as used in input and output mapssqlType
- the parameter SQL type according tojava.sql.Types
typeName
- the type name of the parameter (optional)sqlReturnType
- custom value handler for complex type (optional)
SqlInOutParameter
public SqlInOutParameter(String name, int sqlType, ResultSetExtractor<?> rse)
Create a new SqlInOutParameter.- 参数:
name
- the name of the parameter, as used in input and output mapssqlType
- the parameter SQL type according tojava.sql.Types
rse
- theResultSetExtractor
to use for parsing theResultSet
SqlInOutParameter
public SqlInOutParameter(String name, int sqlType, RowCallbackHandler rch)
Create a new SqlInOutParameter.- 参数:
name
- the name of the parameter, as used in input and output mapssqlType
- the parameter SQL type according tojava.sql.Types
rch
- theRowCallbackHandler
to use for parsing theResultSet
SqlInOutParameter
public SqlInOutParameter(String name, int sqlType, RowMapper<?> rm)
Create a new SqlInOutParameter.
方法详细资料
isInputValueProvided
public boolean isInputValueProvided()
This implementation always returnstrue
.