Class GalleryImageDAO

java.lang.Object
fr.paris.lutece.plugins.galleryimage.business.GalleryImageDAO
All Implemented Interfaces:
IGalleryImageDAO

public final class GalleryImageDAO extends Object implements IGalleryImageDAO
This class provides Data Access methods for GalleryImage objects
  • Constructor Details

    • GalleryImageDAO

      public GalleryImageDAO()
  • Method Details

    • insert

      public void insert(GalleryImage galleryImage)
      Insert a new record in the table.
      Specified by:
      insert in interface IGalleryImageDAO
      Parameters:
      galleryImage - instance of the GalleryImage object to inssert
    • load

      public GalleryImage load(int nId)
      Load the data from the table
      Specified by:
      load in interface IGalleryImageDAO
      Returns:
      The instance of the galleryImage
    • findByGallery

      public List<GalleryImage> findByGallery(int nIdGallery)
      Specified by:
      findByGallery in interface IGalleryImageDAO
      Returns:
      list of GalleryImage
    • delete

      public void delete(int nGalleryImageId)
      Delete a record from the table
      Specified by:
      delete in interface IGalleryImageDAO
      Parameters:
      nGalleryImageId - int identifier of the GalleryImage to delete
    • deleteByGallery

      public void deleteByGallery(int nGalleryId)
      Delete a record by id gallery from the table
      Specified by:
      deleteByGallery in interface IGalleryImageDAO
    • deleteByImage

      public void deleteByImage(int nImageId)
      Delete a record by id image from the table
      Specified by:
      deleteByImage in interface IGalleryImageDAO
    • deleteByGalleryAndImage

      public void deleteByGalleryAndImage(int nIdGallery, int nIdImage)
      Delete a record by id gallery id image from the table
      Specified by:
      deleteByGalleryAndImage in interface IGalleryImageDAO
    • store

      public void store(GalleryImage galleryImage)
      Update the record in the table
      Specified by:
      store in interface IGalleryImageDAO
      Parameters:
      galleryImage - the reference of the GalleryImage
    • selectGalleryImagesList

      public List<GalleryImage> selectGalleryImagesList()
      Load the data of all the galleryImage objects and returns them as a List
      Specified by:
      selectGalleryImagesList in interface IGalleryImageDAO
      Returns:
      The List which contains the data of all the galleryImage objects