Class JpaParameter
java.lang.Object
org.springframework.integration.jpa.support.JpaParameter
Abstraction of Jpa parameters allowing to provide static parameters
and SpEl Expression based parameters.
- Since:
- 2.2
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.JpaParameter(Object value, String expression) Instantiates a new Jpa Parameter without a name.JpaParameter(String name, Object value, String expression) Instantiates a new Jpa Parameter. -
Method Summary
Modifier and TypeMethodDescriptiongetName()org.springframework.expression.Expressionorg.springframework.expression.ExpressiongetValue()final voidsetExpression(String expression) voidvoidtoString()
-
Constructor Details
-
JpaParameter
public JpaParameter()Default constructor. -
JpaParameter
Instantiates a new Jpa Parameter.- Parameters:
name- Name of the JPA parameter, must not be null or emptyvalue- If null, the expression property must be setexpression- If null, the value property must be set
-
JpaParameter
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 setexpression- If null, the value property must be set
-
-
Method Details
-
getName
-
setName
-
getValue
-
setValue
-
getExpression
-
getSpelExpression
@Nullable public org.springframework.expression.Expression getSpelExpression() -
getProjectionExpression
@Nullable public org.springframework.expression.Expression getProjectionExpression() -
setExpression
-
toString
-