Skip to content

Commit 95b2db5

Browse files
committed
Applying changes to documentation.
As suggested by Jay Bryant. Original pull request #903 See #578, #971
1 parent 8843328 commit 95b2db5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: src/main/asciidoc/jdbc.adoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ Thus, the method name results in a query expression of `SELECT … FROM person W
480480
It completes with `IncorrectResultSizeDataAccessException` on non-unique results.
481481
<6> In contrast to <3>, the first entity is always emitted even if the query yields more result documents.
482482
<7> The `findByLastname` method shows a query for all people with the given last name.
483-
<8> The `streamByLastname` method returns a `Stream` which makes values possible as soon as they are returned from the database.
483+
<8> The `streamByLastname` method returns a `Stream`, which makes values possible as soon as they are returned from the database.
484484
====
485485

486486
The following table shows the keywords that are supported for query methods:
@@ -628,13 +628,13 @@ The location of that file may be changed by setting a value to `@EnableJdbcRepos
628628
[[jdbc.query-methods.at-query.streaming-results]]
629629
==== Streaming Results
630630

631-
When you specify `Stream` as the return type of a query method Spring Data JDBC will return elements as soon as they become available.
631+
When you specify Stream as the return type of a query method, Spring Data JDBC returns elements as soon as they become available.
632632
When dealing with large amounts of data this is suitable for reducing latency and memory requirements.
633633

634634
The stream contains an open connection to the database.
635-
To avoid memory leaks that connection needs to be closed eventually by closing the stream.
636-
The recommended way to do that is a try-with-resource clause.
637-
It also means once the connection to the database is closed, the stream cannot obtain further elements and will likely throw an exception.
635+
To avoid memory leaks, that connection needs to be closed eventually, by closing the stream.
636+
The recommended way to do that is a `try-with-resource clause`.
637+
It also means that, once the connection to the database is closed, the stream cannot obtain further elements and likely throws an exception.
638638

639639
[[jdbc.query-methods.at-query.custom-rowmapper]]
640640
==== Custom `RowMapper`

Diff for: src/main/asciidoc/new-features.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This section covers the significant changes for each version.
77
== What's New in Spring Data JDBC 2.3
88

99
* Support for <<jdbc.query-methods.at-query.streaming-results, streaming results>>.
10-
* Support for specifying projection types as return type or using generics and providing a Class parameter to query methods.
10+
* Support for specifying projection types as the return type or using generics and providing a Class parameter to query methods.
1111

1212
[[new-features.2-2-0]]
1313
== What's New in Spring Data JDBC 2.2

0 commit comments

Comments
 (0)