Class ProcedureParameter

java.lang.Object
org.springframework.integration.jdbc.storedproc.ProcedureParameter

public class ProcedureParameter
extends java.lang.Object
Abstraction of Procedure parameters allowing to provide static parameters and SpEl Expression based parameters.
Since:
2.1
  • Constructor Summary

    Constructors 
    Constructor Description
    ProcedureParameter()
    Default constructor.
    ProcedureParameter​(java.lang.String name, java.lang.Object value, java.lang.String expression)
    Instantiates a new Procedure Parameter.
  • Method Summary

    Modifier and Type Method Description
    static java.util.Map<java.lang.String,​java.lang.String> convertExpressions​(java.util.Collection<ProcedureParameter> procedureParameters)
    Utility method that converts a Collection of ProcedureParameter to a Map containing only expression parameters.
    static java.util.Map<java.lang.String,​java.lang.Object> convertStaticParameters​(java.util.Collection<ProcedureParameter> procedureParameters)
    Utility method that converts a Collection of ProcedureParameter to a Map containing only static parameters.
    java.lang.String getExpression()  
    java.lang.String getName()  
    java.lang.Object getValue()  
    void setExpression​(java.lang.String expression)  
    void setName​(java.lang.String name)  
    void setValue​(java.lang.Object value)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ProcedureParameter

      public ProcedureParameter​(java.lang.String name, java.lang.Object value, java.lang.String expression)
      Instantiates a new Procedure Parameter.
      Parameters:
      name - Name of the procedure parameter, must not be null or empty
      value - If null, the expression property must be set
      expression - If null, the value property must be set
    • ProcedureParameter

      public ProcedureParameter()
      Default constructor.
  • Method Details

    • getName

      public java.lang.String getName()
    • setName

      public void setName​(java.lang.String name)
    • getValue

      public java.lang.Object getValue()
    • setValue

      public void setValue​(java.lang.Object value)
    • getExpression

      public java.lang.String getExpression()
    • setExpression

      public void setExpression​(java.lang.String expression)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • convertExpressions

      public static java.util.Map<java.lang.String,​java.lang.String> convertExpressions​(java.util.Collection<ProcedureParameter> procedureParameters)
      Utility method that converts a Collection of ProcedureParameter 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 java.util.Map<java.lang.String,​java.lang.Object> convertStaticParameters​(java.util.Collection<ProcedureParameter> procedureParameters)
      Utility method that converts a Collection of ProcedureParameter to a Map containing only static parameters.
      Parameters:
      procedureParameters - Must not be null.
      Returns:
      Map containing only the static parameters. Will never be null.