List of usage examples for org.springframework.jdbc.core.namedparam BeanPropertySqlParameterSource getValue
@Override @Nullable public Object getValue(String paramName) throws IllegalArgumentException
From source file:com.stehno.sjdbcx.reflection.DefaultParamMapper.java
private void addBean(final MapSqlParameterSource source, final Object beanObj) { final BeanPropertySqlParameterSource beanSource = new BeanPropertySqlParameterSource(beanObj); for (final String name : beanSource.getReadablePropertyNames()) { source.addValue(name, beanSource.getValue(name)); }//from w ww . j a v a2 s.c o m }