Class GenerousBeanProcessor

    • Method Detail

      • mapColumnsToProperties

        protected int[] mapColumnsToProperties​(ResultSetMetaData rsmd,
                                               PropertyDescriptor[] props)
                                        throws SQLException
        Description copied from class: BeanProcessor
        The positions in the returned array represent column numbers. The values stored at each position represent the index in the PropertyDescriptor[] for the bean property that matches the column name. If no bean property was found for a column, the position is set to PROPERTY_NOT_FOUND.
        Overrides:
        mapColumnsToProperties in class BeanProcessor
        Parameters:
        rsmd - The ResultSetMetaData containing column information.
        props - The bean property descriptors.
        Returns:
        An int[] with column index to property index mappings. The 0th element is meaningless because JDBC column indexing starts at 1.
        Throws:
        SQLException - if a database access error occurs