From 583819ca5f8771507fae70f2ce9a2417fac0c5b1 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 5 Nov 2012 14:48:15 -0800 Subject: [PATCH] Fix batch operations sample in reference docs Remove superfluous code from the sample in section 13.4.3 of the JDBC reference guide. Issue: SPR-9937 --- src/reference/docbook/jdbc.xml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/reference/docbook/jdbc.xml b/src/reference/docbook/jdbc.xml index a982cece00..95dde0d808 100644 --- a/src/reference/docbook/jdbc.xml +++ b/src/reference/docbook/jdbc.xml @@ -1516,14 +1516,6 @@ dataSource.setPassword(""); } public int[][] batchUpdate(final Collection<Actor> actors) { - Collection<Object[]> batch = new ArrayList<Object[]>(); - for (Actor actor : actors) { - Object[] values = new Object[] { - actor.getFirstName(), - actor.getLastName(), - actor.getId()}; - batch.add(values); - } int[][] updateCounts = jdbcTemplate.batchUpdate( "update t_actor set first_name = ?, last_name = ? where id = ?", actors,