Class GalleryDAO

  • All Implemented Interfaces:
    IGalleryDAO

    public final class GalleryDAO
    extends java.lang.Object
    implements IGalleryDAO
    This class provides Data Access methods for GalleryDAO objects
    • Constructor Summary

      Constructors 
      Constructor Description
      GalleryDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nGalleryId)
      Delete a record from the table
      Gallery insert​(Gallery gallery)
      Insert a new record in the table.
      Gallery load​(int nId)
      Load the data from the table
      Gallery loadByCodeGallery​(java.lang.String strCodeGallery)
      Load the data by code gallery from the table
      java.util.List<Gallery> selectGalleryList()
      Load the data of all the gallery objects and returns them as a List
      void store​(Gallery gallery)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.util.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​(java.lang.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