java.lang.Object | ||
↳ | org.springframework.jdbc.core.SqlParameter | |
↳ | org.springframework.jdbc.core.SqlParameterValue |
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new SqlParameterValue, supplying the SQL type.
| |||||||||||
Create a new SqlParameterValue, supplying the SQL type.
| |||||||||||
Create a new SqlParameterValue, supplying the SQL type.
| |||||||||||
Create a new SqlParameterValue based on the given SqlParameter declaration.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the value object that this parameter value holds.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jdbc.core.SqlParameter
| |||||||||||
From class
java.lang.Object
|
Create a new SqlParameterValue, supplying the SQL type.
sqlType | SQL type of the parameter according to java.sql.Types |
---|---|
value | the value object |
Create a new SqlParameterValue, supplying the SQL type.
sqlType | SQL type of the parameter according to java.sql.Types |
---|---|
typeName | the type name of the parameter (optional) |
value | the value object |
Create a new SqlParameterValue, supplying the SQL type.
sqlType | SQL type of the parameter according to java.sql.Types |
---|---|
scale | the number of digits after the decimal point (for DECIMAL and NUMERIC types) |
value | the value object |
Create a new SqlParameterValue based on the given SqlParameter declaration.
declaredParam | the declared SqlParameter to define a value for |
---|---|
value | the value object |