![]() |
Uni App
HOU - Computer Science - 2024-2025
|
Public Member Functions | |
| UniRecDAO () | |
| void | createUniversity (University university) throws Exception |
| void | updateUniversity (University university) |
| University | findUniversity (String primaryKey) |
| List< School > | findSchools (String universityName) |
| List< Department > | findDepartments (int schoolId) |
| void | updateInsert (University university, Set< School > schools, Set< Department > departments) |
| void | deleteSchoolsAndDepartments (List< School > schools, List< Department > departments) |
DAO class to support the Unirec Model
| model.uniRecModel.UniRecDAO.UniRecDAO | ( | ) |
| void model.uniRecModel.UniRecDAO.createUniversity | ( | University | university | ) | throws Exception |

| void model.uniRecModel.UniRecDAO.deleteSchoolsAndDepartments | ( | List< School > | schools, |
| List< Department > | departments ) |
Deletes schools and departments from the DB
| schools | |
| departments |

| List< Department > model.uniRecModel.UniRecDAO.findDepartments | ( | int | schoolId | ) |
Returns a list with all departments matching the school id
| schoolId |
| List< School > model.uniRecModel.UniRecDAO.findSchools | ( | String | universityName | ) |
Returns a list of all schools matching the university keyID
| universityName |

| University model.uniRecModel.UniRecDAO.findUniversity | ( | String | primaryKey | ) |

| void model.uniRecModel.UniRecDAO.updateInsert | ( | University | university, |
| Set< School > | schools, | ||
| Set< Department > | departments ) |
Updates University entity and inserts new shcools and departments
| university | |
| schools | |
| departments |


| void model.uniRecModel.UniRecDAO.updateUniversity | ( | University | university | ) |
