public class BeanPropertySqlParameterSourceFactory extends java.lang.Object implements SqlParameterSourceFactory
SqlParameterSourceFactory
which creates an SqlParameterSource
to
reference bean properties in its input.Constructor and Description |
---|
BeanPropertySqlParameterSourceFactory() |
Modifier and Type | Method and Description |
---|---|
org.springframework.jdbc.core.namedparam.SqlParameterSource |
createParameterSource(java.lang.Object input)
Return a new
SqlParameterSource . |
void |
setStaticParameters(java.util.Map<java.lang.String,java.lang.Object> staticParameters)
If the input is a List or a Map, the output is a map parameter source, and in that case some static parameters
can be added (default is empty).
|
public BeanPropertySqlParameterSourceFactory()
public void setStaticParameters(java.util.Map<java.lang.String,java.lang.Object> staticParameters)
staticParameters
- the static parameters to setpublic org.springframework.jdbc.core.namedparam.SqlParameterSource createParameterSource(java.lang.Object input)
SqlParameterSourceFactory
SqlParameterSource
.createParameterSource
in interface SqlParameterSourceFactory
input
- the raw message or query result to be transformed into a SqlParameterSource