org.springframework.integration.jdbc
Class ExpressionEvaluatingSqlParameterSourceFactory
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.jdbc.ExpressionEvaluatingSqlParameterSourceFactory
- All Implemented Interfaces:
- BeanFactoryAware, SqlParameterSourceFactory
public class ExpressionEvaluatingSqlParameterSourceFactory
- extends AbstractExpressionEvaluator
- implements SqlParameterSourceFactory
An implementation of SqlParameterSourceFactory which creates an SqlParameterSource that evaluates
Spring EL expressions. In addition the user can supply static parameters that always take precedence.
- Since:
- 2.0
- Author:
- Dave Syer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionEvaluatingSqlParameterSourceFactory
public ExpressionEvaluatingSqlParameterSourceFactory()
setStaticParameters
public void setStaticParameters(Map<String,?> 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(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
Copyright © 2010. All Rights Reserved.