Class ImageDAO

    • Constructor Summary

      Constructors 
      Constructor Description
      ImageDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete the Image Object
      void deleteByTopic​(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      remove all images associated to a given topic
      void insert​(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Image load​(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the image Object
      List<Image> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      select all Images
      List<Image> selectByTopicId​(int nTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      select images for a given topic
      void store​(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      update record in the table.
      void storeMetadata​(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      update image metadata in the table.
    • Constructor Detail

      • ImageDAO

        public ImageDAO()
    • Method Detail

      • insert

        public void insert​(Image image,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface IImageDAO
        Parameters:
        image - instance of the Image object to insert
        plugin - the plugin
      • store

        public void store​(Image image,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        update record in the table.
        Specified by:
        store in interface IImageDAO
        Parameters:
        image - instance of the Image object to update
        plugin - the plugin
      • storeMetadata

        public void storeMetadata​(Image image,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        update image metadata in the table.
        Specified by:
        storeMetadata in interface IImageDAO
        Parameters:
        image - instance of the Image object to update
        plugin - the plugin
      • load

        public Image load​(int nIdImage,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the image Object
        Specified by:
        load in interface IImageDAO
        Parameters:
        nIdImage - the image id
        plugin - the plugin
        Returns:
        the image Object
      • delete

        public void delete​(int nIdImage,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete the Image Object
        Specified by:
        delete in interface IImageDAO
        Parameters:
        nIdImage - theimage id
        plugin - the plugin
      • deleteByTopic

        public void deleteByTopic​(int nTopicId,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        remove all images associated to a given topic
        Specified by:
        deleteByTopic in interface IImageDAO
        Parameters:
        nTopicId - The Topic ID
        plugin - the Plugin
      • selectAll

        public List<Image> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        select all Images
        Specified by:
        selectAll in interface IImageDAO
        Parameters:
        plugin - the plugin
        Returns:
        a list of Image
      • selectByTopicId

        public List<Image> selectByTopicId​(int nTopicId,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        select images for a given topic
        Specified by:
        selectByTopicId in interface IImageDAO
        Parameters:
        nTopicId - The topic ID
        plugin - The plugin
        Returns:
        The list