Class TableExtractor

java.lang.Object
io.github.mfvanek.pg.checks.extractors.TableExtractor
All Implemented Interfaces:
ResultSetExtractor<io.github.mfvanek.pg.model.table.Table>

public class TableExtractor extends Object implements ResultSetExtractor<io.github.mfvanek.pg.model.table.Table>
A mapper from raw data to Table model.
Since:
0.6.1
  • Method Details

    • extractData

      @Nonnull public io.github.mfvanek.pg.model.table.Table extractData(@Nonnull ResultSet resultSet) throws SQLException
      Converts a row from database to an arbitrary domain model.
      Specified by:
      extractData in interface ResultSetExtractor<io.github.mfvanek.pg.model.table.Table>
      Parameters:
      resultSet - the ResultSet to extract data from
      Returns:
      an arbitrary result object
      Throws:
      SQLException - if an SQLException is encountered getting column values or navigating
    • of

      @Nonnull public static ResultSetExtractor<io.github.mfvanek.pg.model.table.Table> of()