Appends all or part of the given string to the end of the CLOB value that this Clob object represents and returns the number of characters written.
If successful, setString() returns the number of characters appended.
setString(long pos, java.lang.String str, int offset, int len)
- Reserved for future use.
- The string to append to the CLOB value that this Clob object represents.
- The offset into the str argument at which to start reading the characters to append.
- The number of characters from the str argument to append to the CLOB value.
|IF …||THEN setString() throws an SQLException to …|
|there is an error accessing the Clob value||indicate a failure while writing data into a LOB, setting the SQLException fields as follows:
|the JVM cannot allocate enough memory for the method to write the string to the Clob||indicate that available JVM heap memory has run out, setting the SQLException fields as follows:
|one of the following:
||indicate that a Java external routine called a Blob or Clob method with an invalid argument, setting the SQLException fields as follows: