Class GalleryImageHome

java.lang.Object
fr.paris.lutece.plugins.galleryimage.business.GalleryImageHome

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

    • 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 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 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