@Override
  public boolean update(UserActionComment userActionComment) throws DaoException {
    Connection connection = daoFactory.getConnection();

    DaoUtil.executeUpdate(
        connection,
        "UPDATE UserActionComments SET comments_id = ?, useractions_id = ? WHERE id = ?",
        userActionComment.getComment().getId(),
        userActionComment.getUserAction().getId(),
        userActionComment.getId());

    return true;
  }
  @Override
  public boolean insert(UserActionComment userActionComment) throws DaoException {
    Connection connection = daoFactory.getConnection();

    int rowId =
        DaoUtil.executeUpdate(
            connection,
            "INSERT INTO UserActionComments (comments_id, useractions_id) VALUES (?, ?)",
            userActionComment.getComment().getId(),
            userActionComment.getUserAction().getId());

    userActionComment.setId(rowId);

    return true;
  }