Interface IGalleryImageDAO

All Known Implementing Classes:
GalleryImageDAO

public interface IGalleryImageDAO
IGalleryImageDAO Interface
  • Method Details

    • insert

      void insert(GalleryImage galleryImage)
      Insert a new record in the table.
      Parameters:
      galleryImage - instance of the GalleryImage object to inssert
    • store

      void store(GalleryImage galleryImage)
      Update the record in the table
      Parameters:
      galleryImage - the reference of the GalleryImage
    • delete

      void delete(int nIdGalleryImage)
      Delete a record from the table
      Parameters:
      nIdGalleryImage - int identifier of the GalleryImage to delete
    • deleteByGallery

      void deleteByGallery(int nIdGallery)
      Delete a record by id gallery from the table
      Parameters:
      nIdGalleryImage - int identifier of the GalleryImage to delete
    • deleteByImage

      void deleteByImage(int nIdImage)
      Delete a record by id image from the table
      Parameters:
      nIdGalleryImage - int identifier of the GalleryImage to delete
    • deleteByGalleryAndImage

      void deleteByGalleryAndImage(int nIdGallery, int nIdImage)
      Delete a record by id gallery id image from the table
      Parameters:
      nIdGallery -
      nIdImage -
    • load

      GalleryImage load(int nKey)
      Load the data from the table
      Parameters:
      strId - The identifier of the galleryImage
      Returns:
      The instance of the galleryImage
    • findByGallery

      List<GalleryImage> findByGallery(int nIdGallery)
      Parameters:
      nIdGallery -
      Returns:
      list of GalleryImage
    • selectGalleryImagesList

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