Package be.gaudry.dao.edu.derby
Class DerbyPlanning
java.lang.Object
be.gaudry.dao.edu.derby.DerbyPlanning
- All Implemented Interfaces:
IPlanningDao
- Since:
- 1.0 1 nov. 2008
- Author:
- Steph GAUDRY
-
Field Summary
Modifier and TypeFieldDescription(package private) PreparedStatement
(package private) PreparedStatement
(package private) PreparedStatement
(package private) PreparedStatement
(package private) PreparedStatement
(package private) PreparedStatement
(package private) PreparedStatement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add(SchoolYear schoolYear, Period period)
void
loadAsyncPeriodsLos(AbstractBrolWorker worker, AbstractLightObject selectedYear)
void
loadPeriod(int id)
loadSchoolYear(int schoolYearId, boolean lazy)
void
remove(SchoolYear schoolYear, Period period)
int
saveOrUpdate(Period period)
int
saveOrUpdate(SchoolYear schoolYear)
-
Field Details
-
insertYearStatement
PreparedStatement insertYearStatement -
insertPeriodStatement
PreparedStatement insertPeriodStatement -
loadSchoolYearStatement
PreparedStatement loadSchoolYearStatement -
loadSchoolYearLazyStatement
PreparedStatement loadSchoolYearLazyStatement -
loadYearsStatement
PreparedStatement loadYearsStatement -
loadPeriodStatement
PreparedStatement loadPeriodStatement -
loadPeriodsStatement
PreparedStatement loadPeriodsStatement
-
-
Constructor Details
-
DerbyPlanning
public DerbyPlanning()
-
-
Method Details
-
add
- Specified by:
add
in interfaceIPlanningDao
-
loadAsyncPeriodsLos
- Specified by:
loadAsyncPeriodsLos
in interfaceIPlanningDao
-
loadAsyncSchoolYearsLos
- Specified by:
loadAsyncSchoolYearsLos
in interfaceIPlanningDao
-
loadSchoolYearsLos
- Specified by:
loadSchoolYearsLos
in interfaceIPlanningDao
- Returns:
-
loadPeriod
- Specified by:
loadPeriod
in interfaceIPlanningDao
- Returns:
-
loadSchoolYear
- Specified by:
loadSchoolYear
in interfaceIPlanningDao
lazy
-true
to load only start and end dates,false
to load also all periods- Returns:
-
remove
- Specified by:
remove
in interfaceIPlanningDao
-
saveOrUpdate
- Specified by:
saveOrUpdate
in interfaceIPlanningDao
- Returns:
- schoolYear id
-
saveOrUpdate
- Specified by:
saveOrUpdate
in interfaceIPlanningDao
- Returns:
- period id
-