open class BeanPropertySqlParameterSource : 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.
Uses a Spring BeanWrapper for bean property access underneath.
Author
Thomas Risberg
Author
Juergen Hoeller
Since
2.0
See Also
NamedParameterJdbcTemplateorg.springframework.beans.BeanWrapper
BeanPropertySqlParameterSource(object: Any)
Create a new BeanPropertySqlParameterSource for the given bean. |
open fun getReadablePropertyNames(): Array<String>
Provide access to the property names of the wrapped bean. Uses support provided in the PropertyAccessor interface. |
|
open fun getSqlType(paramName: String): Int
Derives a default SQL type from the corresponding property type. |
|
open fun getValue(paramName: String): Any |
|
open fun hasValue(paramName: String): Boolean |