Esempio n. 1
0
 public Comment updateComment(int messageId, Comment comment) {
   String query =
       "update comment set \"commentMessage\" = '"
           + comment.getCommentMessage()
           + "', author = '"
           + comment.getAuthor()
           + "', created = '"
           + comment.getCreated()
           + "', \"messageId\" = '"
           + messageId
           + "' where id = '"
           + comment.getId()
           + "'";
   db.addData(query);
   return comment;
 }