Spring Integration

org.springframework.integration.jpa.support
Class JpaParameter

java.lang.Object
  extended by 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. TODO Should we combine ProcedureParameter class and this class?

Since:
2.2
Author:
Gunnar Hillert

Constructor Summary
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
 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 Detail

JpaParameter

public JpaParameter(java.lang.String name,
                    java.lang.Object value,
                    java.lang.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(java.lang.Object value,
                    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 set
expression - If null, the value property must be set

JpaParameter

public JpaParameter()
Default constructor.

Method Detail

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

Spring Integration