org.springframework.integration.jpa.support.parametersource
Class ExpressionEvaluatingParameterSourceFactory
java.lang.Object
org.springframework.integration.jpa.support.parametersource.ExpressionEvaluatingParameterSourceFactory
- All Implemented Interfaces:
- ParameterSourceFactory
public class ExpressionEvaluatingParameterSourceFactory
- extends java.lang.Object
- implements ParameterSourceFactory
- Since:
- 2.2
- Author:
- Gunnar Hillert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionEvaluatingParameterSourceFactory
public ExpressionEvaluatingParameterSourceFactory()
setParameters
public void setParameters(java.util.List<JpaParameter> parameters)
- Define the (optional) parameter values.
- Parameters:
parameters
- the parameters to be set
createParameterSource
public PositionSupportingParameterSource createParameterSource(java.lang.Object input)
- Description copied from interface:
ParameterSourceFactory
- Return a new
ParameterSource
.
- Specified by:
createParameterSource
in interface ParameterSourceFactory
- Parameters:
input
- the raw message or query result to be transformed into a ParameterSource
convertExpressions
public static java.util.Map<java.lang.String,java.lang.String> convertExpressions(java.util.Collection<JpaParameter> jpaParameters)
- Utility method that converts a Collection of
JpaParameter
to
a Map containing only expression parameters.
- Parameters:
jpaParameters
- Must not be null.
- Returns:
- Map containing only the Expression bound parameters. Will never be null.
convertStaticParameters
public static java.util.Map<java.lang.String,java.lang.Object> convertStaticParameters(java.util.Collection<JpaParameter> jpaParameters)
- Utility method that converts a Collection of
JpaParameter
to
a Map containing only static parameters.
- Parameters:
jpaParameters
- Must not be null.
- Returns:
- Map containing only the static parameters. Will never be null.