コード例 #1
0
  public static int getTestId(String nameTestVal) throws ClassNotFoundException {

    TestDAO tempTest = mysqlFactory.getTestDAO();
    return tempTest.findTest(nameTestVal).getTestId();
  }
コード例 #2
0
 public static String getTestName(int idTest) throws ClassNotFoundException {
   TestDAO tempTest = mysqlFactory.getTestDAO();
   return tempTest.getTestNameById(idTest);
 }
コード例 #3
0
 public static void addNewTest(String nameTestVal, int subjectIdValue)
     throws ClassNotFoundException {
   TestDAO newTest = mysqlFactory.getTestDAO();
   newTest.insertTest(nameTestVal, subjectIdValue);
 }