Package be.gaudry.dao.edu
Interface ISchoolAdminDao
- All Superinterfaces:
ISchoolDao
- All Known Implementing Classes:
DerbySchoolAdmin
- Since:
- 1.0 23 oct. 2008
- Author:
- Steph GAUDRY
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SchoolClass schoolClass, Student student)Adds a student into the school classvoidadd(SchoolClass schoolClass, Teacher teacher)Adds a teacher into the school classvoidAdds a teacher into the schoolintdeleteSchoolClass(int id)intvoidremove(SchoolClass schoolClass, Student student)Removes a student from the school classvoidremove(SchoolClass schoolClass, Teacher teacher)Removes a teacher from the school classvoidRemoves a teacher from the schoolintsaveOrUpdate(School school)intsaveOrUpdate(SchoolClass item)Methods inherited from interface be.gaudry.dao.edu.ISchoolDao
loadAsyncSchoolClassesLos, loadAsyncSchoolClassesLos, loadAsyncSchoolsLos, loadAsyncTeachersLos, loadSchool, loadSchoolClass, loadSchoolClassesLos, loadSchoolsLos
-
Method Details
-
saveOrUpdate
- Parameters:
school- to save or update (only name and director)- Returns:
- school id (-1 if an error occurs)
-
insert
- Parameters:
school-- Returns:
- school id (-1 if an error occurs)
-
deleteSchoolClass
int deleteSchoolClass(int id)- Parameters:
id-- Returns:
- either
- the row count for (SQL) statements
- or 0 for (SQL) statements that return nothing
- or -1 if a persistent (database) error occurs
-
add
Adds a student into the school class- Parameters:
schoolClass-student-
-
remove
Removes a student from the school class- Parameters:
schoolClass-student-
-
add
Adds a teacher into the school class- Parameters:
schoolClass-teacher-
-
remove
Removes a teacher from the school class- Parameters:
schoolClass-teacher-
-
add
Adds a teacher into the school- Parameters:
school-teacher-
-
remove
Removes a teacher from the school- Parameters:
school-teacher-
-
saveOrUpdate
- Parameters:
item-- Returns:
- SchoolClass id (-1 if an error occurs)
-