Class TemplateStepDAO

    • Constructor Detail

      • TemplateStepDAO

        public TemplateStepDAO()
    • Method Detail

      • insert

        public void insert​(Template template,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface ITemplateStepDAO
        Parameters:
        template - instance of the Step object to insert
        plugin - the Plugin
      • load

        public Template load​(int nKey,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface ITemplateStepDAO
        Parameters:
        nKey - The identifier of the template
        plugin - the Plugin
        Returns:
        The instance of the template
      • delete

        public void delete​(int nKey,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        delete in interface ITemplateStepDAO
        Parameters:
        nKey - The identifier of the Template to delete
        plugin - the Plugin
      • store

        public void store​(Template template,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface ITemplateStepDAO
        Parameters:
        template - the reference of the Template
        plugin - the Plugin
      • findAll

        public List<Template> findAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateStepDAO
        Load all templates
        Specified by:
        findAll in interface ITemplateStepDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The instance of the template