Skip to content

Commit

Permalink
#1: Adapt 'RowParser' interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenetics committed Nov 9, 2019
1 parent 1f3db01 commit cb5344a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private BoundsAccess() {}
"VALUES(:minlat, :minlon, :maxlat, :maxlon)"
);

private static final RowParser<Bounds> PARSER = row -> Bounds.of(
private static final RowParser<Bounds> PARSER = (row, conn) -> Bounds.of(
row.getDouble("minlat"),
row.getDouble("minlon"),
row.getDouble("maxlat"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private CopyrightAccess() {}
"VALUES(:author, :year, :license)"
);

private static final RowParser<Copyright> PARSER = row -> Copyright.of(
private static final RowParser<Copyright> PARSER = (row, conn) -> Copyright.of(
row.getString("author"),
Year.of(row.getInt("year")),
URI.create(row.getString("license"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private LinkAccess() {}
"VALUES(:href, :text, :type);"
);

private static final RowParser<Link> PARSER = row -> Link.of(
private static final RowParser<Link> PARSER = (row, conn) -> Link.of(
URI.create(row.getString("href")),
row.getString("text"),
row.getString("type")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private static final class MetadataRow {
")"
);

private static final RowParser<MetadataRow> ROW_PARSER = row ->
private static final RowParser<MetadataRow> ROW_PARSER = (row, conn) ->
MetadataRow.builder()
.name(row.getString("name"))
.desc(row.getString("dscr"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private PersonAccess() {}
"VALUES(:name, :email, :link_id);"
);

private static final RowParser<Person> PARSER = row -> Person.of(
private static final RowParser<Person> PARSER = (row, conn) -> Person.of(
row.getString("name"),
Email.of(row.getString("email")),
Link.of(
Expand Down

0 comments on commit cb5344a

Please sign in to comment.