java.lang.Object
fr.paris.lutece.plugins.galleryimage.business.ImageDAO
All Implemented Interfaces:
IImageDAO

public final class ImageDAO extends Object implements IImageDAO
This class provides Data Access methods for Image objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nImageId, 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.
    load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load list of ids image
    selectIdsByGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load list of ids image by id gallery
    selectIdsLinkedToGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the list of image identifiers that are linked with a gallery
    selectImagesByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load list images by ids
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImageDAO

      public ImageDAO()
  • Method Details

    • 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 inssert
      plugin - the Plugin
    • load

      public Image load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IImageDAO
      plugin - the Plugin
      Returns:
      The instance of the image
    • delete

      public void delete(int nImageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IImageDAO
      Parameters:
      nImageId - int identifier of the Image to delete
      plugin - the Plugin
    • store

      public void store(Image image, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IImageDAO
      Parameters:
      image - the reference of the Image
      plugin - the Plugin
    • selectImagesList

      public 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
      Specified by:
      selectImagesList in interface IImageDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The List which contains the data of all the image objects
    • selectIdsLinkedToGallery

      public List<Integer> selectIdsLinkedToGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IImageDAO
      Load the list of image identifiers that are linked with a gallery
      Specified by:
      selectIdsLinkedToGallery in interface IImageDAO
      Parameters:
      nGalleryId - the gallery id
      plugin - the Plugin
      Returns:
      The list of image identifiers that are linked with a gallery
    • selectImagesByIds

      public List<Image> selectImagesByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IImageDAO
      Load list images by ids
      Specified by:
      selectImagesByIds in interface IImageDAO
      Parameters:
      listIds - the list ids
      plugin - the Plugin
      Returns:
      The List which contains the data of all the image objects
    • selectIdsByGallery

      public List<Integer> selectIdsByGallery(int nGalleryId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IImageDAO
      Load list of ids image by id gallery
      Specified by:
      selectIdsByGallery in interface IImageDAO
      Parameters:
      nGalleryId - the gallery id
      plugin - the Plugin
      Returns:
      The List which contains the data of all the image objects
    • selectIds

      public List<Integer> selectIds(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IImageDAO
      Load list of ids image
      Specified by:
      selectIds in interface IImageDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The List which contains the data of all the image objects