open class SqlParameterValue : SqlParameter
Object to represent a SQL parameter value, including parameter metadata such as the SQL type and the scale for numeric values.
Designed for use with JdbcTemplate's operations that take an array of argument values: Each such argument value may be a SqlParameterValue, indicating the SQL type (and optionally the scale) instead of letting the template guess a default type. Note that this only applies to the operations with a 'plain' argument array, not to the overloaded variants with an explicit type array.
Author
Juergen Hoeller
Since
2.0.5
See Also
java.sql.TypesJdbcTemplate#query(String, Object[], ResultSetExtractor)JdbcTemplate#query(String, Object[], RowCallbackHandler)JdbcTemplate#query(String, Object[], RowMapper)JdbcTemplate#update(String, Object[])
SqlParameterValue(sqlType: Int, value: Any)SqlParameterValue(sqlType: Int, typeName: String, value: Any)SqlParameterValue(sqlType: Int, scale: Int, value: Any)
Create a new SqlParameterValue, supplying the SQL type. SqlParameterValue(declaredParam: SqlParameter, value: Any)
Create a new SqlParameterValue based on the given SqlParameter declaration. |
open fun getValue(): Any
Return the value object that this parameter value holds. |