Class ProcedureParameter
java.lang.Object
org.springframework.integration.jdbc.storedproc.ProcedureParameter
Abstraction of Procedure parameters allowing to provide static parameters
and SpEl Expression based parameters.
- Since:
- 2.1
- Author:
- Gunnar Hillert, Artem Bilan
-
Constructor Summary
ConstructorDescriptionDefault constructor.ProcedureParameter
(String name, Object value, String expression) Instantiates a new Procedure Parameter. -
Method Summary
Modifier and TypeMethodDescriptionconvertExpressions
(Collection<ProcedureParameter> procedureParameters) Utility method that converts a Collection ofProcedureParameter
to a Map containing only expression parameters.convertStaticParameters
(Collection<ProcedureParameter> procedureParameters) Utility method that converts a Collection ofProcedureParameter
to a Map containing only static parameters.getName()
getValue()
void
setExpression
(String expression) void
void
toString()
-
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 ofProcedureParameter
to 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 ofProcedureParameter
to a Map containing only static parameters.- Parameters:
procedureParameters
- Must not be null.- Returns:
- Map containing only the static parameters. Will never be null.
-