public static List<Result> getAllResults() throws ClassNotFoundException {

    ResultDAO results = mysqlFactory.getResultDAO();
    return results.selectAll();
  }
  public static List<Result> getStudentResults(int idStudent) throws ClassNotFoundException {

    ResultDAO results = mysqlFactory.getResultDAO();
    return results.selectByStudent(idStudent);
  }
  public static void addTestResult(int idStudent, int idTest, double result)
      throws ClassNotFoundException {

    ResultDAO setResult = mysqlFactory.getResultDAO();
    setResult.insertResult(idStudent, idTest, result);
  }