Interface IAttributeDAO

  • All Known Implementing Classes:
    AttributeDAO

    public interface IAttributeDAO
    Files2Docs Attribute interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteByMapping​(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Deletes a record from the table
      void insert​(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Inserts a new record in the table
      Attribute load​(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the data of the attribute from the table
      Attribute selectByDocumentAttribute​(int nDocumentAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the data of the attribute filtered by document attribute
      java.util.Collection<Attribute> selectByMapping​(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the data of the attributes filtered by mapping
      void store​(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Updates the record in the table
    • Method Detail

      • insert

        void insert​(Attribute attribute,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Inserts a new record in the table
        Parameters:
        attribute - Instance of the Attribute object to insert
        plugin - The plugin
      • selectByMapping

        java.util.Collection<Attribute> selectByMapping​(int nMappingId,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Loads the data of the attributes filtered by mapping
        Parameters:
        nMappingId - The mapping identifier
        plugin - The plugin
        Returns:
        A collection which contains the data of the attributes filtered by mapping
      • load

        Attribute load​(int nAttributeId,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Loads the data of the attribute from the table
        Parameters:
        nAttributeId - The attribute identifier
        plugin - The plugin
        Returns:
        The instance of the Attribute
      • store

        void store​(Attribute attribute,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Updates the record in the table
        Parameters:
        attribute - The reference of the attribute
        plugin - The plugin
      • deleteByMapping

        void deleteByMapping​(int nMappingId,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Deletes a record from the table
        Parameters:
        nMappingId - The mapping identifier
        plugin - The plugin
      • selectByDocumentAttribute

        Attribute selectByDocumentAttribute​(int nDocumentAttributeId,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Loads the data of the attribute filtered by document attribute
        Parameters:
        nDocumentAttributeId - The document attribute identifier
        plugin - The plugin
        Returns:
        The instance of the Attribute