Spring Integration

org.springframework.integration.jpa.support.parametersource
Class ExpressionEvaluatingParameterSourceFactory

java.lang.Object
  extended by 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

Nested Class Summary
 class ExpressionEvaluatingParameterSourceFactory.ParameterExpressionEvaluator
           
 
Constructor Summary
ExpressionEvaluatingParameterSourceFactory()
           
 
Method Summary
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.
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.
 PositionSupportingParameterSource createParameterSource(java.lang.Object input)
          Return a new ParameterSource.
 void setParameters(java.util.List<JpaParameter> parameters)
          Define the (optional) parameter values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEvaluatingParameterSourceFactory

public ExpressionEvaluatingParameterSourceFactory()
Method Detail

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.

Spring Integration