private < T > T createBean ( ResultSet rs , Class < T > type , PropertyDescriptor [ ] props , int [ ] columnToProperty ) throws SQLException { T bean = this . newInstance ( type ) ; return populateBean ( rs , bean , props , columnToProperty ) ; }
Creates a new object and initializes its fields from the ResultSet .