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 TypeMethodDescriptionvoid
add(SchoolClass schoolClass, Student student)
Adds a student into the school classvoid
add(SchoolClass schoolClass, Teacher teacher)
Adds a teacher into the school classvoid
Adds a teacher into the schoolint
deleteSchoolClass(int id)
int
void
remove(SchoolClass schoolClass, Student student)
Removes a student from the school classvoid
remove(SchoolClass schoolClass, Teacher teacher)
Removes a teacher from the school classvoid
Removes a teacher from the schoolint
saveOrUpdate(School school)
int
saveOrUpdate(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)
-