@@ -6035,18 +6035,17 @@ The following example shows how to create and insert a BLOB:
6035
6035
<2> Using the method `setClobAsCharacterStream` to pass in the contents of the CLOB.
6036
6036
<3> Using the method `setBlobAsBinaryStream` to pass in the contents of the BLOB.
6037
6037
6038
-
6039
6038
[NOTE]
6040
6039
====
6041
6040
If you invoke the `setBlobAsBinaryStream`, `setClobAsAsciiStream`, or
6042
6041
`setClobAsCharacterStream` method on the `LobCreator` returned from
6043
- `DefaultLobHandler.getLobCreator()`, you can optionally specify a negative value for the
6044
- `contentLength` argument. If the specified content length is negative, the
6042
+ `DefaultLobHandler.getLobCreator()`, you can optionally specify a negative value
6043
+ for the `contentLength` argument. If the specified content length is negative, the
6045
6044
`DefaultLobHandler` uses the JDBC 4.0 variants of the set-stream methods without a
6046
6045
length parameter. Otherwise, it passes the specified length on to the driver.
6047
6046
6048
- See the documentation for the JDBC driver you use to verify that it supports streaming a
6049
- LOB without providing the content length.
6047
+ See the documentation for the JDBC driver you use to verify that it supports streaming
6048
+ a LOB without providing the content length.
6050
6049
====
6051
6050
6052
6051
Now it is time to read the LOB data from the database. Again, you use a `JdbcTemplate`
@@ -6093,15 +6092,15 @@ variable list of values. A typical example would be `select * from t_actor where
6093
6092
JDBC standard. You cannot declare a variable number of placeholders. You need a number
6094
6093
of variations with the desired number of placeholders prepared, or you need to generate
6095
6094
the SQL string dynamically once you know how many placeholders are required. The named
6096
- parameter support provided in the `NamedParameterJdbcTemplate` and `JdbcTemplate` takes
6097
- the latter approach. You can pass in the values as a `java.util.List` of primitive objects. This
6098
- list is used to insert the required placeholders and pass in the values during
6099
- statement execution.
6100
-
6101
- NOTE: Be careful when passing in many values. The JDBC standard does not guarantee that you
6102
- can use more than 100 values for an `in ` expression list. Various databases exceed this
6103
- number, but they usually have a hard limit for how many values are allowed. For example, Oracle's
6104
- limit is 1000.
6095
+ parameter support provided in the `NamedParameterJdbcTemplate` takes the latter approach.
6096
+ You can pass in the values as a `java.util.List` (or any `Iterable`) of simple values.
6097
+ This list is used to insert the required placeholders into the actual SQL statement
6098
+ and pass in the values during statement execution.
6099
+
6100
+ NOTE: Be careful when passing in many values. The JDBC standard does not guarantee that
6101
+ you can use more than 100 values for an `IN ` expression list. Various databases exceed
6102
+ this number, but they usually have a hard limit for how many values are allowed.
6103
+ For example, Oracle's limit is 1000.
6105
6104
6106
6105
In addition to the primitive values in the value list, you can create a `java.util.List`
6107
6106
of object arrays. This list can support multiple expressions being defined for the `in`
0 commit comments