Interface IImageDAO

  • All Known Implementing Classes:
    ImageDAO

    public interface IImageDAO
    IImageDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Image load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<java.lang.Integer> selectIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load list of ids image
      java.util.List<java.lang.Integer> selectIdsByGallery​(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load list of ids image by id gallery
      java.util.List<java.lang.Integer> selectIdsLinkedToGallery​(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of image identifiers that are linked with a gallery
      java.util.List<Image> selectImagesByIds​(java.util.List<java.lang.Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load list images by ids
      java.util.List<Image> selectImagesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the image objects and returns them as a List
      void store​(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

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

        void store​(Image image,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        image - the reference of the Image
        plugin - the Plugin
      • delete

        void delete​(int nIdImage,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nIdImage - int identifier of the Image to delete
        plugin - the Plugin
      • load

        Image load​(int nKey,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        strId - The identifier of the image
        plugin - the Plugin
        Returns:
        The instance of the image
      • selectImagesList

        java.util.List<Image> selectImagesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the image objects and returns them as a List
        Parameters:
        plugin - the Plugin
        displayType - the displayType ( Value by null if you want all the images)
        Returns:
        The List which contains the data of all the image objects
      • selectIdsLinkedToGallery

        java.util.List<java.lang.Integer> selectIdsLinkedToGallery​(int nGalleryId,
                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the list of image identifiers that are linked with a gallery
        Parameters:
        nGalleryId - the gallery id
        plugin - the Plugin
        Returns:
        The list of image identifiers that are linked with a gallery
      • selectIdsByGallery

        java.util.List<java.lang.Integer> selectIdsByGallery​(int nGalleryId,
                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load list of ids image by id gallery
        Parameters:
        nGalleryId - the gallery id
        plugin - the Plugin
        Returns:
        The List which contains the data of all the image objects
      • selectIds

        java.util.List<java.lang.Integer> selectIds​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load list of ids image
        Parameters:
        nGalleryId - the gallery id
        plugin - the Plugin
        Returns:
        The List which contains the data of all the image objects
      • selectImagesByIds

        java.util.List<Image> selectImagesByIds​(java.util.List<java.lang.Integer> listIds,
                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load list images by ids
        Parameters:
        listIds - the list ids
        plugin - the Plugin
        Returns:
        The List which contains the data of all the image objects