|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2017 the original author or authors. |
| 2 | + * Copyright 2002-2022 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
30 | 30 |
|
31 | 31 | /**
|
32 | 32 | * Object to represent an SQL BLOB/CLOB value parameter. BLOBs can either be an
|
33 |
| - * InputStream or a byte array. CLOBs can be in the form of a Reader, InputStream |
| 33 | + * InputStream or a byte array. CLOBs can be in the form of a Reader, InputStream, |
34 | 34 | * or String. Each CLOB/BLOB value will be stored together with its length.
|
35 |
| - * The type is based on which constructor is used. Objects of this class are |
36 |
| - * immutable except for the LobCreator reference. Use them and discard them. |
| 35 | + * The type is based on which constructor is used. Instances of this class are |
| 36 | + * stateful and immutable: use them and discard them. |
37 | 37 | *
|
38 |
| - * <p>This class holds a reference to a LocCreator that must be closed after the |
39 |
| - * update has completed. This is done via a call to the closeLobCreator method. |
40 |
| - * All handling of the LobCreator is done by the framework classes that use it - |
41 |
| - * no need to set or close the LobCreator for end users of this class. |
| 38 | + * <p>This class holds a reference to a {@link LobCreator} that must be closed after |
| 39 | + * the update has completed. This is done via a call to the {@link #cleanup()} method. |
| 40 | + * All handling of the {@code LobCreator} is done by the framework classes that use it - |
| 41 | + * no need to set or close the {@code LobCreator} for end users of this class. |
42 | 42 | *
|
43 | 43 | * <p>A usage example:
|
44 | 44 | *
|
@@ -72,8 +72,7 @@ public class SqlLobValue implements DisposableSqlTypeValue {
|
72 | 72 | private final int length;
|
73 | 73 |
|
74 | 74 | /**
|
75 |
| - * This contains a reference to the LobCreator - so we can close it |
76 |
| - * once the update is done. |
| 75 | + * Reference to the LobCreator - so we can close it once the update is done. |
77 | 76 | */
|
78 | 77 | private final LobCreator lobCreator;
|
79 | 78 |
|
|
0 commit comments