Interface ColumnMapper

  • All Known Subinterfaces:
    KeyMapper
    All Known Implementing Classes:
    AttributeMapper, PasswordKeyMapper

    public interface ColumnMapper
    A column mapper is responsible to provide the mapping between a column in a table to some internal representation. For instance, mapping a column to a specific credential type or attribute.
    Author:
    Pedro Igor
    • Method Detail

      • map

        Object map​(ResultSet resultSet,
                   Supplier<Provider[]> providers)
            throws SQLException
        Maps the given ResultSet to some internal representation.
        Parameters:
        resultSet - the result set previously created based on a query
        providers - the providers to use if required
        Returns:
        the resulting object mapped from the given ResultSet
        Throws:
        SQLException - if any error occurs when manipulating the given ResultSet