org.springframework.jdbc.core.namedparam.SqlParameterSource |
Known Indirect Subclasses |
Interface that defines common functionality for objects that can
offer parameter values for named SQL parameters, serving as argument
for NamedParameterJdbcTemplate
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | TYPE_UNKNOWN | Constant that indicates an unknown (or unspecified) SQL type. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine the SQL type for the specified named parameter.
| |||||||||||
Determine the type name for the specified named parameter.
| |||||||||||
Return the parameter value for the requested named parameter.
| |||||||||||
Determine whether there is a value for the specified named parameter.
|
Constant that indicates an unknown (or unspecified) SQL type.
To be returned from getType
when no specific SQL type known.
getSqlType(String)
Determine the SQL type for the specified named parameter.
paramName | the name of the parameter |
---|
TYPE_UNKNOWN
if not knownDetermine the type name for the specified named parameter.
paramName | the name of the parameter |
---|
null
if not known
Return the parameter value for the requested named parameter.
paramName | the name of the parameter |
---|
IllegalArgumentException | if there is no value for the requested parameter |
---|
Determine whether there is a value for the specified named parameter.
paramName | the name of the parameter |
---|