Class TemplateFieldDAO

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      int insert​(fr.paris.lutece.plugins.genericattributes.business.Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      fr.paris.lutece.plugins.genericattributes.business.Field load​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of the Field from the table
      List<fr.paris.lutece.plugins.genericattributes.business.Field> loadByCode​(String code, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load all Fields by code
      List<fr.paris.lutece.plugins.genericattributes.business.Field> selectFieldListByIdEntry​(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the field of the entry and returns them in a list
      void store​(fr.paris.lutece.plugins.genericattributes.business.Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the field in the table
    • Constructor Detail

      • TemplateFieldDAO

        public TemplateFieldDAO()
    • Method Detail

      • insert

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

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

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

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

        public List<fr.paris.lutece.plugins.genericattributes.business.Field> selectFieldListByIdEntry​(int nIdEntry,
                                                                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateFieldDAO
        Load the data of all the field of the entry and returns them in a list
        Specified by:
        selectFieldListByIdEntry in interface ITemplateFieldDAO
        Parameters:
        nIdEntry - the id of the entry
        plugin - the plugin
        Returns:
        the list of field
      • loadByCode

        public List<fr.paris.lutece.plugins.genericattributes.business.Field> loadByCode​(String code,
                                                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: ITemplateFieldDAO
        Load all Fields by code
        Specified by:
        loadByCode in interface ITemplateFieldDAO
        Returns: