@@ -121,18 +121,17 @@ Kotlin::
121
121
<3> Using the method `setBlobAsBinaryStream` to pass in the contents of the BLOB.
122
122
======
123
123
124
-
125
124
[NOTE]
126
125
====
127
126
If you invoke the `setBlobAsBinaryStream`, `setClobAsAsciiStream`, or
128
127
`setClobAsCharacterStream` method on the `LobCreator` returned from
129
- `DefaultLobHandler.getLobCreator()`, you can optionally specify a negative value for the
130
- `contentLength` argument. If the specified content length is negative, the
128
+ `DefaultLobHandler.getLobCreator()`, you can optionally specify a negative value
129
+ for the `contentLength` argument. If the specified content length is negative, the
131
130
`DefaultLobHandler` uses the JDBC 4.0 variants of the set-stream methods without a
132
131
length parameter. Otherwise, it passes the specified length on to the driver.
133
132
134
- See the documentation for the JDBC driver you use to verify that it supports streaming a
135
- LOB without providing the content length.
133
+ See the documentation for the JDBC driver you use to verify that it supports streaming
134
+ a LOB without providing the content length.
136
135
====
137
136
138
137
Now it is time to read the LOB data from the database. Again, you use a `JdbcTemplate`
@@ -184,15 +183,15 @@ variable list of values. A typical example would be `select * from T_ACTOR where
184
183
JDBC standard. You cannot declare a variable number of placeholders. You need a number
185
184
of variations with the desired number of placeholders prepared, or you need to generate
186
185
the SQL string dynamically once you know how many placeholders are required. The named
187
- parameter support provided in the `NamedParameterJdbcTemplate` and `JdbcTemplate` takes
188
- the latter approach. You can pass in the values as a `java.util.List` of primitive objects. This
189
- list is used to insert the required placeholders and pass in the values during
190
- statement execution.
191
-
192
- NOTE: Be careful when passing in many values. The JDBC standard does not guarantee that you
193
- can use more than 100 values for an `in ` expression list. Various databases exceed this
194
- number, but they usually have a hard limit for how many values are allowed. For example, Oracle's
195
- limit is 1000.
186
+ parameter support provided in the `NamedParameterJdbcTemplate` takes the latter approach.
187
+ You can pass in the values as a `java.util.List` (or any `Iterable`) of simple values.
188
+ This list is used to insert the required placeholders into the actual SQL statement
189
+ and pass in the values during statement execution.
190
+
191
+ NOTE: Be careful when passing in many values. The JDBC standard does not guarantee that
192
+ you can use more than 100 values for an `IN ` expression list. Various databases exceed
193
+ this number, but they usually have a hard limit for how many values are allowed.
194
+ For example, Oracle's limit is 1000.
196
195
197
196
In addition to the primitive values in the value list, you can create a `java.util.List`
198
197
of object arrays. This list can support multiple expressions being defined for the `in`
0 commit comments