Interface ICalendarTemplateDAO

  • All Known Implementing Classes:
    CalendarTemplateDAO

    public interface ICalendarTemplateDAO
    Calendar Template DAO Interface
    Author:
    Laurent Payen
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(CalendarTemplate template, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record int the table
      CalendarTemplate select​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<CalendarTemplate> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get all the calendar templates
      void update​(CalendarTemplate template, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

        void insert​(CalendarTemplate template,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record int the table
        Parameters:
        template - instance of the template object to insert
        plugin - The plugin
      • update

        void update​(CalendarTemplate template,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        template - the reference of the template
        plugin - The plugin
      • delete

        void delete​(int nId,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nId - int identifier of the template to delete
        plugin - The plugin
      • select

        CalendarTemplate select​(int nId,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nId - The id of the template
        plugin - The plugin
        Returns:
        The instance of the template
      • selectAll

        java.util.List<CalendarTemplate> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get all the calendar templates
        Parameters:
        plugin - The plugin
        Returns:
        The list of calendar templates