Class ProcedureParameter
java.lang.Object
org.springframework.integration.jdbc.storedproc.ProcedureParameter
public class ProcedureParameter extends Object
Abstraction of Procedure parameters allowing to provide static parameters
and SpEl Expression based parameters.
- Since:
- 2.1
- Author:
- Gunnar Hillert, Artem Bilan
-
Constructor Summary
Constructors Constructor Description ProcedureParameter()Default constructor.ProcedureParameter(String name, Object value, String expression)Instantiates a new Procedure Parameter. -
Method Summary
Modifier and Type Method Description static Map<String,String>convertExpressions(Collection<ProcedureParameter> procedureParameters)Utility method that converts a Collection ofProcedureParameterto a Map containing only expression parameters.static Map<String,Object>convertStaticParameters(Collection<ProcedureParameter> procedureParameters)Utility method that converts a Collection ofProcedureParameterto a Map containing only static parameters.StringgetExpression()StringgetName()ObjectgetValue()voidsetExpression(String expression)voidsetName(String name)voidsetValue(Object value)StringtoString()
-
Constructor Details
-
ProcedureParameter
Instantiates a new Procedure Parameter.- Parameters:
name- Name of the procedure parameter, must not be null or emptyvalue- If null, the expression property must be setexpression- If null, the value property must be set
-
ProcedureParameter
public ProcedureParameter()Default constructor.
-
-
Method Details
-
getName
-
setName
-
getValue
-
setValue
-
getExpression
-
setExpression
-
toString
-
convertExpressions
public static Map<String,String> convertExpressions(Collection<ProcedureParameter> procedureParameters)Utility method that converts a Collection ofProcedureParameterto a Map containing only expression parameters.- Parameters:
procedureParameters- Must not be null.- Returns:
- Map containing only the Expression bound parameters. Will never be null.
-
convertStaticParameters
public static Map<String,Object> convertStaticParameters(Collection<ProcedureParameter> procedureParameters)Utility method that converts a Collection ofProcedureParameterto a Map containing only static parameters.- Parameters:
procedureParameters- Must not be null.- Returns:
- Map containing only the static parameters. Will never be null.
-