title: Assign value to clob variable
body: <p>Let's assume there is a variable CLOB response.
  How do i assign some value to this clob variable in java?</p>
  
  <p>I am doing this:</p>
  
  <pre><code>Clob clob=null;
  clob.setString(0, "&lt;test&gt;&lt;/test&gt;");
  </code></pre>
  
  <p>The second line is showing an error saying clob could be only null here.</p>
  
  <p>update-</p>
  
  <pre><code>ValResponses valResponses=new ValResponses();
            valResponses.setVraId(Long.parseLong("12"));
            Clob clob = null;
            //clob.setString(1, "&lt;test&gt;&lt;/test&gt;");
            valResponses.setFullResponse(clob);
            valResponses.setValReport(fileName);
  </code></pre>
  
  <p>See there is one pojo ValResponses  now this pojo has one variable valresponse having type CLOB,now I want to set some dummy value in that how to do that,?</p>