Class ProjectManagerCalendarDAO
java.lang.Object
org.silverpeas.components.projectmanager.model.ProjectManagerCalendarDAO
- Author:
- neysseri
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddHolidayDate(Connection con, HolidayDetail holiday) static Stringdate2DBDate(Date date) getHolidayDates(Connection con, String instanceId) getHolidayDates(Connection con, String instanceId, Date beginDate, Date endDate) static booleanisHolidayDate(Connection con, HolidayDetail holiday) static voidremoveAllHolidayDates(Connection con, String instanceId) Removes all the holiday dates that were saved for the specified ProjectManager instance.static voidremoveHolidayDate(Connection con, HolidayDetail holiday)
-
Method Details
-
addHolidayDate
- Throws:
SQLException
-
removeHolidayDate
- Throws:
SQLException
-
removeAllHolidayDates
Removes all the holiday dates that were saved for the specified ProjectManager instance.- Parameters:
con- a connection to the data source into which are stored the holiday dates.instanceId- the unique identifier of a ProjectManager instance.- Throws:
SQLException- if an error occurs while deleting the holiday dates.
-
isHolidayDate
- Throws:
SQLException
-
getHolidayDates
- Throws:
SQLException
-
getHolidayDates
public static List<Date> getHolidayDates(Connection con, String instanceId, Date beginDate, Date endDate) throws SQLException - Throws:
SQLException
-
date2DBDate
-