Class CalendarTemplateDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.business.calendar.CalendarTemplateDAO
- All Implemented Interfaces:
ICalendarTemplateDAO
This class provides Data Access methods for Calendar Template objects
- Author:
- Laurent Payen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdCalendarTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidinsert(CalendarTemplate calendarTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record int the tableselect(int nIdCalendarTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get all the calendar templatesvoidupdate(CalendarTemplate calendarTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
CalendarTemplateDAO
public CalendarTemplateDAO()
-
-
Method Details
-
insert
public void insert(CalendarTemplate calendarTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:ICalendarTemplateDAOInsert a new record int the table- Specified by:
insertin interfaceICalendarTemplateDAO- Parameters:
calendarTemplate- instance of the template object to insertplugin- The plugin
-
update
public void update(CalendarTemplate calendarTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:ICalendarTemplateDAOUpdate the record in the table- Specified by:
updatein interfaceICalendarTemplateDAO- Parameters:
calendarTemplate- the reference of the templateplugin- The plugin
-
delete
public void delete(int nIdCalendarTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:ICalendarTemplateDAODelete a record from the table- Specified by:
deletein interfaceICalendarTemplateDAO- Parameters:
nIdCalendarTemplate- int identifier of the template to deleteplugin- The plugin
-
select
public CalendarTemplate select(int nIdCalendarTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:ICalendarTemplateDAOLoad the data from the table- Specified by:
selectin interfaceICalendarTemplateDAO- Parameters:
nIdCalendarTemplate- The id of the templateplugin- The plugin- Returns:
- The instance of the template
-
selectAll
Description copied from interface:ICalendarTemplateDAOGet all the calendar templates- Specified by:
selectAllin interfaceICalendarTemplateDAO- Parameters:
plugin- The plugin- Returns:
- The list of calendar templates
-