Interface ISchoolAdminDao

All Superinterfaces:
ISchoolDao
All Known Implementing Classes:
DerbySchoolAdmin

public interface ISchoolAdminDao extends ISchoolDao
Since:
1.0 23 oct. 2008
Author:
Steph GAUDRY
  • Method Details

    • saveOrUpdate

      int saveOrUpdate(School school)
      Parameters:
      school - to save or update (only name and director)
      Returns:
      school id (-1 if an error occurs)
    • insert

      int insert(School school)
      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

      void add(SchoolClass schoolClass, Student student)
      Adds a student into the school class
      Parameters:
      schoolClass -
      student -
    • remove

      void remove(SchoolClass schoolClass, Student student)
      Removes a student from the school class
      Parameters:
      schoolClass -
      student -
    • add

      void add(SchoolClass schoolClass, Teacher teacher)
      Adds a teacher into the school class
      Parameters:
      schoolClass -
      teacher -
    • remove

      void remove(SchoolClass schoolClass, Teacher teacher)
      Removes a teacher from the school class
      Parameters:
      schoolClass -
      teacher -
    • add

      void add(School school, Teacher teacher)
      Adds a teacher into the school
      Parameters:
      school -
      teacher -
    • remove

      void remove(School school, Teacher teacher)
      Removes a teacher from the school
      Parameters:
      school -
      teacher -
    • saveOrUpdate

      int saveOrUpdate(SchoolClass item)
      Parameters:
      item -
      Returns:
      SchoolClass id (-1 if an error occurs)