Class TemplateEntryDAO

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      int insert​(fr.paris.lutece.plugins.genericattributes.business.Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      fr.paris.lutece.plugins.genericattributes.business.Entry load​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of the entry from the table
      void store​(fr.paris.lutece.plugins.genericattributes.business.Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the entry in the table
    • Constructor Detail

      • TemplateEntryDAO

        public TemplateEntryDAO()
    • Method Detail

      • insert

        public int insert​(fr.paris.lutece.plugins.genericattributes.business.Entry entry,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface ITemplateEntryDAO
        Parameters:
        entry - instance of the Entry object to insert
        plugin - the plugin
        Returns:
        the id of the new entry
      • load

        public fr.paris.lutece.plugins.genericattributes.business.Entry load​(int nId,
                                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of the entry from the table
        Specified by:
        load in interface ITemplateEntryDAO
        Parameters:
        nId - The identifier of the entry
        plugin - the plugin
        Returns:
        the instance of the Entry
      • delete

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

        public void store​(fr.paris.lutece.plugins.genericattributes.business.Entry entry,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the entry in the table
        Specified by:
        store in interface ITemplateEntryDAO
        Parameters:
        entry - instance of the Entry object to update
        plugin - the plugin