java.lang.Object | ||
↳ | org.springframework.jdbc.core.namedparam.AbstractSqlParameterSource | |
↳ | org.springframework.jdbc.core.namedparam.MapSqlParameterSource |
SqlParameterSource
implementation that holds a given Map of parameters.
This class is intended for passing in a simple Map of parameter values
to the methods of the NamedParameterJdbcTemplate
class.
The addValue
methods on this class will make adding several
values easier. The methods return a reference to the MapSqlParameterSource
itself, so you can chain several method calls together within a single statement.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.jdbc.core.namedparam.SqlParameterSource
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an empty MapSqlParameterSource,
with values to be added via
addValue . | |||||||||||
Create a new MapSqlParameterSource, with one value
comprised of the supplied arguments.
| |||||||||||
Create a new MapSqlParameterSource based on a Map.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a parameter to this parameter source.
| |||||||||||
Add a parameter to this parameter source.
| |||||||||||
Add a parameter to this parameter source.
| |||||||||||
Add a Map of parameters to this parameter source.
| |||||||||||
Expose the current parameter values as read-only Map.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jdbc.core.namedparam.AbstractSqlParameterSource
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.jdbc.core.namedparam.SqlParameterSource
|
Create an empty MapSqlParameterSource,
with values to be added via addValue
.
Create a new MapSqlParameterSource, with one value comprised of the supplied arguments.
paramName | the name of the parameter |
---|---|
value | the value of the parameter |
Create a new MapSqlParameterSource based on a Map.
values | a Map holding existing parameter values (can be null )
|
---|
Add a parameter to this parameter source.
paramName | the name of the parameter |
---|---|
value | the value of the parameter |
Add a parameter to this parameter source.
paramName | the name of the parameter |
---|---|
value | the value of the parameter |
sqlType | the SQL type of the parameter |
typeName | the type name of the parameter |
Add a parameter to this parameter source.
paramName | the name of the parameter |
---|---|
value | the value of the parameter |
sqlType | the SQL type of the parameter |
Add a Map of parameters to this parameter source.
values | a Map holding existing parameter values (can be null ) |
---|