org.springframework.integration.jdbc
Class BeanPropertySqlParameterSourceFactory

java.lang.Object
  extended by org.springframework.integration.jdbc.BeanPropertySqlParameterSourceFactory
All Implemented Interfaces:
SqlParameterSourceFactory

public class BeanPropertySqlParameterSourceFactory
extends java.lang.Object
implements SqlParameterSourceFactory

A default implementation of SqlParameterSourceFactory which creates an SqlParameterSource to reference bean properties in its input.

Since:
2.0

Constructor Summary
BeanPropertySqlParameterSourceFactory()
           
 
Method Summary
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanPropertySqlParameterSourceFactory

public BeanPropertySqlParameterSourceFactory()
Method Detail

setStaticParameters

public 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). If the input is not a List or a Map then this value is ignored.

Parameters:
staticParameters - the static parameters to set

createParameterSource

public SqlParameterSource createParameterSource(java.lang.Object input)
Description copied from interface: SqlParameterSourceFactory
Return a new SqlParameterSource.

Specified by:
createParameterSource in interface SqlParameterSourceFactory
Parameters:
input - the raw message or query result to be transformed into a SqlParameterSource