org.springframework.integration.jdbc
Class DefaultSqlParamterSourceFactory

java.lang.Object
  extended by org.springframework.integration.jdbc.DefaultSqlParamterSourceFactory
All Implemented Interfaces:
SqlParamterSourceFactory

public class DefaultSqlParamterSourceFactory
extends java.lang.Object
implements SqlParamterSourceFactory

A default implementation of SqlParamterSourceFactory which creates an SqlParameterSource according to the result of the polled data passed in Where the result of the poll is a List a list of ids generated by looking for a map entry or bean property named by default 'id'. The resulting SqlParameterSource contains this list under a default key of 'idList'. Where the result of the poll is a Map this is wrapped in an instance of MapSqlParameterSource Otherwise the result is wrapped in an instance of BeanPropertySqlParameterSource

Author:
Jonas Partner

Constructor Summary
DefaultSqlParamterSourceFactory()
           
DefaultSqlParamterSourceFactory(java.util.Map<java.lang.String,java.lang.Object> staticParameters)
           
 
Method Summary
 org.springframework.jdbc.core.namedparam.SqlParameterSource createParamterSource(java.lang.Object resultOfSelect)
          Return a new SqlParameterSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSqlParamterSourceFactory

public DefaultSqlParamterSourceFactory()

DefaultSqlParamterSourceFactory

public DefaultSqlParamterSourceFactory(java.util.Map<java.lang.String,java.lang.Object> staticParameters)
Method Detail

createParamterSource

public org.springframework.jdbc.core.namedparam.SqlParameterSource createParamterSource(java.lang.Object resultOfSelect)
Description copied from interface: SqlParamterSourceFactory
Return a new SqlParameterSource

Specified by:
createParamterSource in interface SqlParamterSourceFactory
Parameters:
resultOfSelect - the result of the preceeding poll operation
Returns: