コード例 #1
0
  public static List<Result> getAllResults() throws ClassNotFoundException {

    ResultDAO results = mysqlFactory.getResultDAO();
    return results.selectAll();
  }
コード例 #2
0
  public static List<Result> getStudentResults(int idStudent) throws ClassNotFoundException {

    ResultDAO results = mysqlFactory.getResultDAO();
    return results.selectByStudent(idStudent);
  }
コード例 #3
0
  public static void addTestResult(int idStudent, int idTest, double result)
      throws ClassNotFoundException {

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