Beispiel #1
0
 @Override
 protected void onResult(ResultSet resultSet, Race race) throws SQLException {
   race.id = resultSet.getInt("id");
   race.name = resultSet.getString("name");
 }
Beispiel #2
0
 @Override
 protected void onEachResult(ResultSet resultSet, List<Race> resultList) throws SQLException {
   resultList.add(Race.of(resultSet.getInt("id"), resultSet.getString("name")));
 }