Class GalleryDAO

  • All Implemented Interfaces:
    IGalleryDAO

    public final class GalleryDAO
    extends Object
    implements IGalleryDAO
    This class provides Data Access methods for GalleryDAO objects
    • Constructor Detail

      • GalleryDAO

        public GalleryDAO()
    • Method Detail

      • insert

        public Gallery insert​(Gallery gallery)
        Insert a new record in the table.
        Specified by:
        insert in interface IGalleryDAO
        Parameters:
        gallery - instance of the gallery object to insert
      • load

        public Gallery load​(int nId)
        Load the data from the table
        Specified by:
        load in interface IGalleryDAO
        Returns:
        The instance of the gallery
      • delete

        public void delete​(int nGalleryId)
        Delete a record from the table
        Specified by:
        delete in interface IGalleryDAO
        Parameters:
        nGalleryId - int identifier of the Gallery to delete
      • store

        public void store​(Gallery gallery)
        Update the record in the table
        Specified by:
        store in interface IGalleryDAO
        Parameters:
        gallery - the reference of the gallery
      • selectGalleryList

        public List<Gallery> selectGalleryList()
        Load the data of all the gallery objects and returns them as a List
        Specified by:
        selectGalleryList in interface IGalleryDAO
        Returns:
        The List which contains the data of all the gallery objects
      • loadByCodeGallery

        public Gallery loadByCodeGallery​(String strCodeGallery)
        Load the data by code gallery from the table
        Specified by:
        loadByCodeGallery in interface IGalleryDAO
        Parameters:
        strCodeGallery - The code gallery
        Returns:
        The instance of the gallery