Class BeanPropertyParameterSource
java.lang.Object
org.springframework.integration.jpa.support.parametersource.BeanPropertyParameterSource
- All Implemented Interfaces:
ParameterSource
- Since:
- 2.2
- Author:
- Gunnar Hillert, Gary Russell
-
Constructor Summary
ConstructorsConstructorDescriptionBeanPropertyParameterSource(Object object) Create a new BeanPropertySqlParameterSource for the given bean. -
Method Summary
Modifier and TypeMethodDescriptionString[]Provide access to the property names of the wrapped bean.Return the parameter value for the requested named parameter.booleanDetermine whether there is a value for the specified named parameter.
-
Constructor Details
-
BeanPropertyParameterSource
Create a new BeanPropertySqlParameterSource for the given bean.- Parameters:
object- the bean instance to wrap
-
-
Method Details
-
hasValue
Description copied from interface:ParameterSourceDetermine whether there is a value for the specified named parameter.- Specified by:
hasValuein interfaceParameterSource- Parameters:
paramName- the name of the parameter- Returns:
- whether there is a value defined
-
getValue
Description copied from interface:ParameterSourceReturn the parameter value for the requested named parameter.- Specified by:
getValuein interfaceParameterSource- Parameters:
paramName- the name of the parameter- Returns:
- the value of the specified parameter
-
getReadablePropertyNames
Provide access to the property names of the wrapped bean. Uses support provided in thePropertyAccessorinterface.- Returns:
- an array containing all the known property names
-