Class BeanPropertyParameterSource

java.lang.Object
org.springframework.integration.jpa.support.parametersource.BeanPropertyParameterSource
All Implemented Interfaces:
ParameterSource

public class BeanPropertyParameterSource
extends java.lang.Object
implements ParameterSource
Since:
2.2
  • Constructor Summary

    Constructors 
    Constructor Description
    BeanPropertyParameterSource​(java.lang.Object object)
    Create a new BeanPropertySqlParameterSource for the given bean.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String[] getReadablePropertyNames()
    Provide access to the property names of the wrapped bean.
    java.lang.Object getValue​(java.lang.String paramName)
    Return the parameter value for the requested named parameter.
    boolean hasValue​(java.lang.String paramName)
    Determine whether there is a value for the specified named parameter.

    Methods inherited from class java.lang.Object

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

    • BeanPropertyParameterSource

      public BeanPropertyParameterSource​(java.lang.Object object)
      Create a new BeanPropertySqlParameterSource for the given bean.
      Parameters:
      object - the bean instance to wrap
  • Method Details

    • hasValue

      public boolean hasValue​(java.lang.String paramName)
      Description copied from interface: ParameterSource
      Determine whether there is a value for the specified named parameter.
      Specified by:
      hasValue in interface ParameterSource
      Parameters:
      paramName - the name of the parameter
      Returns:
      whether there is a value defined
    • getValue

      public java.lang.Object getValue​(java.lang.String paramName)
      Description copied from interface: ParameterSource
      Return the parameter value for the requested named parameter.
      Specified by:
      getValue in interface ParameterSource
      Parameters:
      paramName - the name of the parameter
      Returns:
      the value of the specified parameter
    • getReadablePropertyNames

      public java.lang.String[] getReadablePropertyNames()
      Provide access to the property names of the wrapped bean. Uses support provided in the PropertyAccessor interface.
      Returns:
      an array containing all the known property names