title: Converting from String to Clob using setString() not working
body: <p>I am trying to convert a String into a Clob to store in a database. I have the following code:</p>
  
  <pre><code>Clob clob = connection.createClob();
  System.out.println("clob before setting: " + clob);
  clob.setString(1,"Test string" );
  System.out.println("clob after setting: " + clob);
  System.out.println("clob back to string: " + clob.toString());
  </code></pre>
  
  <p>When I run this the Clob is not being set, the output is as follows:</p>
  
  <pre><code>clob before setting: org.apache.derby.impl.jdbc.EmbedClob@1f5483e
  clob after setting: org.apache.derby.impl.jdbc.EmbedClob@1f5483e
  clob back to string: org.apache.derby.impl.jdbc.EmbedClob@1f5483e
  </code></pre>
  
  <p>Everywhere I look says to use the setString method, I have no idea why this isn't working for me.</p>