BindParameterSource implementation that holds a given Map of parameters
encapsulated as Parameter.
This class is intended for passing in a simple Map of parameter values to the methods
of the NamedParameterExpander class.
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | MapBindParameterSource(Map<String, Parameter>
the parameter mapping values)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv MapBindParameterSource | addValue(String
the name of the parameter paramName, Object the parameter value to add (must not be value)null)Add a key-value pair to the |
| public Iterable | getParameterNames()
Implements org. |
| public Parameter | getValue(String
the name of the parameter paramName)Implements org. |
| public boolean | hasValue(String
the name of the parameter paramName)Implements org. |
| values | back to summary |
|---|---|
| private final Map<String, Parameter> values | |
| MapBindParameterSource | back to summary |
|---|---|
| pack-priv MapBindParameterSource() Create a new empty | |
| MapBindParameterSource | back to summary |
|---|---|
| pack-priv MapBindParameterSource(Map<String, Parameter> values) Creates a new | |
| addValue | back to summary |
|---|---|
| pack-priv MapBindParameterSource addValue(String paramName, Object value) Add a key-value pair to the | |
| getParameterNames | back to summary |
|---|---|
| public Iterable Implements org. Doc from org. Return the parameter names of the underlying parameter source. | |
| getValue | back to summary |
|---|---|
| public Parameter getValue(String paramName) throws IllegalArgumentException Implements org. Doc from org. Return the parameter for the requested named parameter.
| |
| hasValue | back to summary |
|---|---|
| public boolean hasValue(String paramName) Implements org. Doc from org. Determine whether there is a value for the specified named parameter. | |