Example usage for org.springframework.jdbc.core.namedparam BeanPropertySqlParameterSource getReadablePropertyNames

List of usage examples for org.springframework.jdbc.core.namedparam BeanPropertySqlParameterSource getReadablePropertyNames

Introduction

In this page you can find the example usage for org.springframework.jdbc.core.namedparam BeanPropertySqlParameterSource getReadablePropertyNames.

Prototype

public String[] getReadablePropertyNames() 

Source Link

Document

Provide access to the property names of the wrapped bean.

Usage

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));
    }/* w  ww . j  av  a 2s.c o  m*/
}