Package be.gaudry.dao.edu.derby
Class DerbySchool
java.lang.Object
be.gaudry.dao.edu.derby.DerbySchool
- All Implemented Interfaces:
ISchoolDao
- Direct Known Subclasses:
DerbySchoolAdmin
- Since:
- 1.0 Oct 23, 2008
- Author:
- Steph GAUDRY
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) PreparedStatement
(package private) PreparedStatement
(package private) PreparedStatement
(package private) PreparedStatement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
loadAsyncSchoolClassesLos(AbstractBrolWorker worker, int schoolYearId)
void
loadAsyncSchoolClassesLos(AbstractBrolWorker worker, AbstractLightObject selectedSchool, int schoolYearId)
void
loadAsyncSchoolsLos(AbstractBrolWorker<Integer> worker)
void
loadAsyncTeachersLos(AbstractBrolWorker<Integer> worker, School school)
loadSchool(int schoolId, boolean lazy)
loadSchoolClass(int id, boolean lazy)
If lazy arg is false, loads also: students periods for the schoolYearloadSchoolClassesLos(int schoolYearId)
-
Field Details
-
loadSchoolStatement
PreparedStatement loadSchoolStatement -
loadSchoolLazyStatement
PreparedStatement loadSchoolLazyStatement -
loadSchoolClassStatement
PreparedStatement loadSchoolClassStatement -
loadSchoolClassLazyStatement
PreparedStatement loadSchoolClassLazyStatement
-
-
Constructor Details
-
DerbySchool
public DerbySchool()
-
-
Method Details
-
loadSchool
- Specified by:
loadSchool
in interfaceISchoolDao
lazy
-true
to load only school name,false
to load also director and schoolClasses (only id's and names)- Returns:
-
loadSchoolsLos
- Specified by:
loadSchoolsLos
in interfaceISchoolDao
- Returns:
-
loadAsyncSchoolsLos
- Specified by:
loadAsyncSchoolsLos
in interfaceISchoolDao
- Parameters:
worker
- to allow loading the list asynchronous and sending each result in an Object[]
-
loadAsyncSchoolClassesLos
- Specified by:
loadAsyncSchoolClassesLos
in interfaceISchoolDao
-
loadAsyncSchoolClassesLos
public void loadAsyncSchoolClassesLos(AbstractBrolWorker worker, AbstractLightObject selectedSchool, int schoolYearId)- Specified by:
loadAsyncSchoolClassesLos
in interfaceISchoolDao
-
loadSchoolClassesLos
- Specified by:
loadSchoolClassesLos
in interfaceISchoolDao
-
loadSchoolClass
Description copied from interface:ISchoolDao
If lazy arg is false, loads also:- students
- periods for the schoolYear
- Specified by:
loadSchoolClass
in interfaceISchoolDao
- Returns:
-
loadAsyncTeachersLos
- Specified by:
loadAsyncTeachersLos
in interfaceISchoolDao
- Parameters:
worker
- to allow loading the list asynchronous and sending each result in an Object[]
-