Class JpaParameter

java.lang.Object
org.springframework.integration.jpa.support.JpaParameter

public class JpaParameter extends Object
Abstraction of Jpa parameters allowing to provide static parameters and SpEl Expression based parameters.
Since:
2.2
Author:
Gunnar Hillert, Artem Bilan, Gary Russell
  • Constructor Details

    • JpaParameter

      public JpaParameter()
      Default constructor.
    • JpaParameter

      public JpaParameter(String name, @Nullable Object value, @Nullable String expression)
      Instantiates a new Jpa Parameter.
      Parameters:
      name - Name of the JPA 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
    • JpaParameter

      public JpaParameter(@Nullable Object value, @Nullable String expression)
      Instantiates a new Jpa Parameter without a name. This is useful for specifying positional Jpa parameters.
      Parameters:
      value - If null, the expression property must be set
      expression - If null, the value property must be set
  • Method Details

    • getName

      public @Nullable String getName()
    • setName

      public void setName(String name)
    • getValue

      public @Nullable Object getValue()
    • setValue

      public void setValue(Object value)
    • getExpression

      public @Nullable String getExpression()
    • getSpelExpression

      public @Nullable Expression getSpelExpression()
    • getProjectionExpression

      public @Nullable Expression getProjectionExpression()
    • setExpression

      public final void setExpression(@Nullable String expression)
    • toString

      public String toString()
      Overrides:
      toString in class Object