Example #1
0
 public static boolean isCommentOwner(int userID, int commentID) {
   DatabaseManager dbMan;
   try {
     dbMan = DatabaseManager.getInstance();
     ResultSet result = dbMan.isCommentOwner(userID, commentID);
     if (result.next()) {
       return true;
     }
     return false;
   } catch (ClassNotFoundException e) {
     e.printStackTrace();
   } catch (SQLException e) {
     e.printStackTrace();
   }
   return false;
 }