public interface SqlParameterSource
JdbcTemplate operations.
This interface allows for the specification of SQL type in addition to parameter values. All parameter values and types are identified by specifying the name of the parameter.
Intended to wrap various implementations like a Map or a JavaBean with a consistent interface.
JdbcTemplate| 限定符和类型 | 方法和说明 |
|---|---|
String[] |
getParameterNames()
Enumerate all available parameter names if possible.
|
Object |
getValue(String paramName)
Return the parameter value for the requested named parameter.
|
boolean |
hasValue(String paramName)
Determine whether there is a value for the specified named parameter.
|
boolean hasValue(String paramName)
paramName - the name of the parameterObject getValue(String paramName) throws IllegalArgumentException
paramName - the name of the parameterIllegalArgumentException - if there is no value for the requested parameterString[] getParameterNames()
null if not determinableCopyright © 2020–2021. All rights reserved.