java.lang.Object | ||
↳ | org.springframework.jdbc.core.namedparam.AbstractSqlParameterSource | |
↳ | org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource |
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.
Uses a Spring BeanWrapper for bean property access underneath.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.jdbc.core.namedparam.SqlParameterSource
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new BeanPropertySqlParameterSource for the given bean.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Provide access to the property names of the wrapped bean.
| |||||||||||
Derives a default SQL type from the corresponding property type.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jdbc.core.namedparam.AbstractSqlParameterSource
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.jdbc.core.namedparam.SqlParameterSource
|
Create a new BeanPropertySqlParameterSource for the given bean.
object | the bean instance to wrap |
---|
Provide access to the property names of the wrapped bean.
Uses support provided in the PropertyAccessor
interface.
Derives a default SQL type from the corresponding property type.
paramName | the name of the parameter |
---|
TYPE_UNKNOWN
if not registered