Class BeanPropertySqlParameterSourceFactory
java.lang.Object
org.springframework.integration.jdbc.BeanPropertySqlParameterSourceFactory
- All Implemented Interfaces:
- SqlParameterSourceFactory
public class BeanPropertySqlParameterSourceFactory
extends Object
implements SqlParameterSourceFactory
A default implementation of 
SqlParameterSourceFactory which creates an SqlParameterSource to
 reference bean properties in its input.- Since:
- 2.0
- Author:
- Dave Syer, Gary Russell, Artem Bilan
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateParameterSource(Object input) Return a newSqlParameterSource.voidsetStaticParameters(Map<String, 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).
- 
Constructor Details- 
BeanPropertySqlParameterSourceFactorypublic BeanPropertySqlParameterSourceFactory()
 
- 
- 
Method Details- 
setStaticParametersIf 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). If the input is not a List or a Map then this value is ignored.- Parameters:
- staticParameters- the static parameters to set
 
- 
createParameterSourceDescription copied from interface:SqlParameterSourceFactoryReturn a newSqlParameterSource.- Specified by:
- createParameterSourcein interface- SqlParameterSourceFactory
- Parameters:
- input- the raw message or query result to be transformed into a SqlParameterSource
- Returns:
- The parameter source.
 
 
-