@ Override public < T > T populateBean ( ResultSet rs , T bean ) throws SQLException { Class < ? > type = bean . getClass ( ) ; PropertyDescriptor [ ] props = this . propertyDescriptors ( type ) ; int [ ] columnToProperty = this . mapColumnsToProperties ( rs . getMetaData ( ) , props , type ) ; return populateBean ( rs , bean , props , columnToProperty ) ; }
Initializes the fields of the provided bean from the ResultSet .