Class JpaParameter
java.lang.Object
org.springframework.integration.jpa.support.JpaParameter
public class JpaParameter
extends java.lang.Object
Abstraction of Jpa parameters allowing to provide static parameters
and SpEl Expression based parameters.
- Since:
- 2.2
-
Constructor Summary
Constructors Constructor Description JpaParameter()Default constructor.JpaParameter(java.lang.Object value, java.lang.String expression)Instantiates a new Jpa Parameter without a name.JpaParameter(java.lang.String name, java.lang.Object value, java.lang.String expression)Instantiates a new Jpa Parameter. -
Method Summary
Modifier and Type Method Description java.lang.StringgetExpression()java.lang.StringgetName()org.springframework.expression.ExpressiongetProjectionExpression()org.springframework.expression.ExpressiongetSpelExpression()java.lang.ObjectgetValue()voidsetExpression(java.lang.String expression)voidsetName(java.lang.String name)voidsetValue(java.lang.Object value)java.lang.StringtoString()
-
Constructor Details
-
JpaParameter
public JpaParameter()Default constructor. -
JpaParameter
public JpaParameter(java.lang.String name, @Nullable java.lang.Object value, @Nullable java.lang.String expression)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
public JpaParameter(@Nullable java.lang.Object value, @Nullable java.lang.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 setexpression- If null, the value property must be set
-
-
Method Details
-
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String name) -
getValue
@Nullable public java.lang.Object getValue() -
setValue
public void setValue(java.lang.Object value) -
getExpression
@Nullable public java.lang.String getExpression() -
getSpelExpression
@Nullable public org.springframework.expression.Expression getSpelExpression() -
getProjectionExpression
@Nullable public org.springframework.expression.Expression getProjectionExpression() -
setExpression
public final void setExpression(@Nullable java.lang.String expression) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-