Uni App
HOU - Computer Science - 2024-2025
Loading...
Searching...
No Matches
model.uniRecModel.UniRecDAO Class Reference

Public Member Functions

 UniRecDAO ()
 
void createUniversity (University university) throws Exception
 
void updateUniversity (University university)
 
University findUniversity (String primaryKey)
 
List< SchoolfindSchools (String universityName)
 
List< DepartmentfindDepartments (int schoolId)
 
void updateInsert (University university, Set< School > schools, Set< Department > departments)
 
void deleteSchoolsAndDepartments (List< School > schools, List< Department > departments)
 

Detailed Description

DAO class to support the Unirec Model

Constructor & Destructor Documentation

◆ UniRecDAO()

model.uniRecModel.UniRecDAO.UniRecDAO ( )

Member Function Documentation

◆ createUniversity()

void model.uniRecModel.UniRecDAO.createUniversity ( University university) throws Exception
Here is the call graph for this function:

◆ deleteSchoolsAndDepartments()

void model.uniRecModel.UniRecDAO.deleteSchoolsAndDepartments ( List< School > schools,
List< Department > departments )

Deletes schools and departments from the DB

Parameters
schools
departments
Here is the caller graph for this function:

◆ findDepartments()

List< Department > model.uniRecModel.UniRecDAO.findDepartments ( int schoolId)

Returns a list with all departments matching the school id

Parameters
schoolId
Returns

◆ findSchools()

List< School > model.uniRecModel.UniRecDAO.findSchools ( String universityName)

Returns a list of all schools matching the university keyID

Parameters
universityName
Returns
Here is the caller graph for this function:

◆ findUniversity()

University model.uniRecModel.UniRecDAO.findUniversity ( String primaryKey)
Here is the call graph for this function:

◆ updateInsert()

void model.uniRecModel.UniRecDAO.updateInsert ( University university,
Set< School > schools,
Set< Department > departments )

Updates University entity and inserts new shcools and departments

Parameters
university
schools
departments
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateUniversity()

void model.uniRecModel.UniRecDAO.updateUniversity ( University university)
Here is the call graph for this function:

The documentation for this class was generated from the following file: