title: PreparedStatement for Text datatype
body: <p>In PreparedStatement i got an error in this line saying that "the method getMessage return type is Text, So setString property cannot accommodate Text value "</p>
  
  <p>I write a method like</p>
  
  <pre><code>public Text getMessage(){
      return message;
  }
  </code></pre>
  
  <p>In my class</p>
  
  <pre><code> PreparedStatement ps;
          ps=con.prepareStatement("insert into tblmessage  
   (message) values(?)");
          ps.setString(2, usermsgmodel.getMessage());
          ps.executeUpdate();
  </code></pre>