@ -2730,13 +2730,13 @@ The following query finds and populates a single domain object:
@@ -2730,13 +2730,13 @@ The following query finds and populates a single domain object:
@ -2750,7 +2750,7 @@ The following query finds and populates a single domain object:
@@ -2750,7 +2750,7 @@ The following query finds and populates a single domain object:
}
----
The following query finds and populates a number of domain objects:
The following query finds and populates a list of domain objects:
@ -2771,7 +2771,6 @@ The following query finds and populates a number of domain objects:
@@ -2771,7 +2771,6 @@ The following query finds and populates a number of domain objects:
If the last two snippets of code actually existed in the same application, it would make
sense to remove the duplication present in the two `RowMapper` lambda expressions and
extract them out into a single field that could then be referenced by DAO methods as needed.
@ -2780,7 +2779,6 @@ For example, it may be better to write the preceding code snippet as follows:
@@ -2780,7 +2779,6 @@ For example, it may be better to write the preceding code snippet as follows:
@ -2791,7 +2789,6 @@ For example, it may be better to write the preceding code snippet as follows:
@@ -2791,7 +2789,6 @@ For example, it may be better to write the preceding code snippet as follows:
public List<Actor> findAllActors() {
return this.jdbcTemplate.query( "select first_name, last_name from t_actor", actorRowMapper);
@ -4043,10 +4040,10 @@ The following example shows a batch update that uses a batch size of 100:
@@ -4043,10 +4040,10 @@ The following example shows a batch update that uses a batch size of 100:
"update t_actor set first_name = ?, last_name = ? where id = ?",
actors,
100,
(PreparedStatement ps, Actor argument) -> {
ps.setString(1, argument.getFirstName());
ps.setString(2, argument.getLastName());
ps.setLong(3, argument.getId().longValue());
(PreparedStatement ps, Actor actor) -> {
ps.setString(1, actor.getFirstName());
ps.setString(2, actor.getLastName());
ps.setLong(3, actor.getId().longValue());
});
return updateCounts;
}
@ -5542,9 +5539,9 @@ database. To accommodate these types, Spring provides a `SqlReturnType` for hand
@@ -5542,9 +5539,9 @@ database. To accommodate these types, Spring provides a `SqlReturnType` for hand
them when they are returned from the stored procedure call and `SqlTypeValue` when they
are passed in as a parameter to the stored procedure.
The `SqlReturnType` interface has a single method (named
`getTypeValue`) that must be implemented. This interface is used as part of the
declaration of an `SqlOutParameter`. The following example shows returning the value of an Oracle `STRUCT` object of the user
The `SqlReturnType` interface has a single method (named `getTypeValue`) that must be
implemented. This interface is used as part of the declaration of an `SqlOutParameter`.
The following example shows returning the value of an Oracle `STRUCT` object of the user