class JdbcPlayerSummaryDao implements ItemWriter<PlayerSummary> {

	private static final String INSERT_SUMMARY = "INSERT into PLAYER_SUMMARY(ID, YEAR_NO, COMPLETES, ATTEMPTS, PASSING_YARDS, PASSING_TD, "
			+ "INTERCEPTIONS, RUSHES, RUSH_YARDS, RECEPTIONS, RECEPTIONS_YARDS, TOTAL_TD) "
			+ "values(:id, :year, :completes, :attempts, :passingYards, :passingTd, "
			+ ":interceptions, :rushes, :rushYards, :receptions, :receptionYards, :totalTd)";

	private NamedParameterJdbcOperations namedParameterJdbcTemplate;

	@Override
	public void write(Chunk<? extends PlayerSummary> summaries) {<FILL_FUNCTION_BODY>}

	public void setDataSource(DataSource dataSource) {
		this.namedParameterJdbcTemplate = new NamedParameterJdbcTemplate(dataSource);
	}

}


		for (PlayerSummary summary : summaries) {

			MapSqlParameterSource args = new MapSqlParameterSource().addValue("id", summary.getId())
				.addValue("year", summary.getYear())
				.addValue("completes", summary.getCompletes())
				.addValue("attempts", summary.getAttempts())
				.addValue("passingYards", summary.getPassingYards())
				.addValue("passingTd", summary.getPassingTd())
				.addValue("interceptions", summary.getInterceptions())
				.addValue("rushes", summary.getRushes())
				.addValue("rushYards", summary.getRushYards())
				.addValue("receptions", summary.getReceptions())
				.addValue("receptionYards", summary.getReceptionYards())
				.addValue("totalTd", summary.getTotalTd());

			namedParameterJdbcTemplate.update(INSERT_SUMMARY, args);
		}
	
<no_super_class>