/**
   * Get an professor by id
   *
   * @param String
   * @return object
   */
  public mmStudent loadStudentById(int Student_ID) {
    try {
      return mmStudentDAO.getStudentById(Student_ID);

    } catch (Exception e) {
      System.out.println("Exception: " + e.getMessage());
      return null;
    }
  }
  public mmStudent loadStudentByCode(String StudentCode) {
    try {
      return mmStudentDAO.getStudentByCode(StudentCode);

    } catch (Exception e) {
      System.out.println("Exception: " + e.getMessage());
      return null;
    }
  }
 /**
  * Get Student list by class
  *
  * @param String
  * @return object
  */
 @Override
 public List<mmStudent> listStudentsByStatus(int statusID) {
   try {
     return mmStudentDAO.listStudentsByStatus(statusID);
   } catch (Exception e) {
     System.out.println("Exception: " + e.getMessage());
     return null;
   }
 }
 /**
  * Get Student list by class
  *
  * @param String
  * @return object
  */
 @Override
 public List<mmStudent> listStudentsByClasses(String classesCode) {
   try {
     if (classesCode != null) {
       return mmStudentDAO.listStudentsByClasses(classesCode);
     }
     return null;
   } catch (Exception e) {
     System.out.println("Exception: " + e.getMessage());
     return null;
   }
 }
  /**
   * Save a Student
   *
   * @param String
   * @return int
   */
  @Override
  public int saveAStudent(
      String StudentCode,
      String StudentName,
      String StudentEmail,
      String StudentPhone,
      String studentClassCode,
      mmFaculty faculty,
      int StatusID) {

    mmStudent Student = new mmStudent();
    Student.setStudent_Code(StudentCode);
    Student.setStudent_Name(StudentName);
    Student.setStudent_Email(StudentEmail);
    Student.setStudent_Phone(StudentPhone);
    Student.setStudent_ClassesCode(studentClassCode);
    Student.setStudent_StatusID(StatusID);

    return mmStudentDAO.saveAStudent(Student);
  }
 /**
  * Remove a Student
  *
  * @param int
  * @return int
  */
 @Override
 public int removeAStudent(int StudentId) {
   return mmStudentDAO.removeAStudent(StudentId);
 }
  /**
   * Edit a Student
   *
   * @param String
   * @return int
   */
  @Override
  public void editAStudent(mmStudent Student) {

    mmStudentDAO.editAStudent(Student);
  }