Class GalleryImageHome


  • public final class GalleryImageHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for GalleryImage objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static GalleryImage create​(GalleryImage galleryImage)
      Create an instance of the galleryImage class
      static java.util.List<GalleryImage> findAll()
      Load the data of all the galleryImage objects and returns them in form of a collection
      static java.util.List<GalleryImage> findByGalleryId​(int nKey)
      Load the data of all the galleryImage bu gallery id
      static GalleryImage findByPrimaryKey​(int nKey)
      Returns an instance of a galleryImage whose identifier is specified in parameter
      static void remove​(int nGalleryImageId)
      Remove the galleryImage whose identifier is specified in parameter
      static void removeByGalleryId​(int nGalleryId)
      Remove the galleryImage by id gallery
      static void removeByGalleryIdAndIdImage​(int nGalleryId, int nImageId)
      Remove the galleryImage by id gallery and id image
      static void removeByImageId​(int nImageId)
      Remove the galleryImage by id image
      static GalleryImage update​(GalleryImage galleryImage)
      Update of the galleryImage data specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static GalleryImage create​(GalleryImage galleryImage)
        Create an instance of the galleryImage class
        Parameters:
        galleryImage - The instance of the GalleryImage which contains the informations to store
        Returns:
        The instance of galleryImage which has been created with its primary key.
      • update

        public static GalleryImage update​(GalleryImage galleryImage)
        Update of the galleryImage data specified in parameter
        Parameters:
        galleryImage - The instance of the GalleryImage which contains the data to store
        Returns:
        The instance of the galleryImage which has been updated
      • remove

        public static void remove​(int nGalleryImageId)
        Remove the galleryImage whose identifier is specified in parameter
        Parameters:
        nGalleryImageId - The galleryImage Id
      • removeByGalleryId

        public static void removeByGalleryId​(int nGalleryId)
        Remove the galleryImage by id gallery
        Parameters:
        nGalleryId - The gallery Id
      • removeByImageId

        public static void removeByImageId​(int nImageId)
        Remove the galleryImage by id image
        Parameters:
        nImageId - The gallery Id
      • removeByGalleryIdAndIdImage

        public static void removeByGalleryIdAndIdImage​(int nGalleryId,
                                                       int nImageId)
        Remove the galleryImage by id gallery and id image
        Parameters:
        nGalleryId - The gallery Id
      • findByPrimaryKey

        public static GalleryImage findByPrimaryKey​(int nKey)
        Returns an instance of a galleryImage whose identifier is specified in parameter
        Parameters:
        nKey - The galleryImage primary key
        Returns:
        an instance of GalleryImage
      • findByGalleryId

        public static java.util.List<GalleryImage> findByGalleryId​(int nKey)
        Load the data of all the galleryImage bu gallery id
        Parameters:
        nKey - The gallery id
        Returns:
        the list of GalleryImage
      • findAll

        public static java.util.List<GalleryImage> findAll()
        Load the data of all the galleryImage objects and returns them in form of a collection
        Returns:
        the list which contains the data of all the galleryImage objects