Class BeanPropertySqlParameterSource

java.lang.Object
org.springframework.jdbc.core.namedparam.AbstractSqlParameterSource
org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource
All Implemented Interfaces:
SqlParameterSource

public class BeanPropertySqlParameterSource extends AbstractSqlParameterSource
SqlParameterSource implementation that obtains parameter values from bean properties of a given JavaBean object. The names of the bean properties have to match the parameter names. Supports components of record classes as well, with accessor methods matching parameter names.

Uses a Spring BeanWrapper for bean property access underneath.

Since:
2.0
Author:
Thomas Risberg, Juergen Hoeller
See Also: