Class ImageHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Image create​(Image image)
      Create an instance of the image class
      static Image find​(int nKey)
      Returns an instance of a image whose identifier is specified in parameter
      static Image findWihtBinary​(int nKey)
      Returns an instance of a image whose identifier is specified in parameter
      static java.util.List<java.lang.Integer> getIdsList()
      Load all ids list
      static java.util.List<java.lang.Integer> getIdsList​(int nIdGallery)
      Load the ids image of gallery
      static java.util.List<java.lang.Integer> getIdsListLinkedToGallery​(int nIdGallery)
      Load the ids image linked with gallery
      static java.util.List<Image> getImagesByIdsWithBinary​(java.util.List<java.lang.Integer> listIds)
      Load images by ids
      static java.util.List<Image> getImagesList()
      Load the data of all the image objects and returns them in form of a list
      static java.util.List<Image> getImagesListWithBinary()
      Load the data of all the image objects and returns them in form of a list
      static void remove​(int nImageId)
      Remove the image whose identifier is specified in parameter
      static Image update​(Image image)
      Update of the image which is specified in parameter
      • Methods inherited from class java.lang.Object

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

      • create

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

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

        public static void remove​(int nImageId)
        Remove the image whose identifier is specified in parameter
        Parameters:
        nImageId - The image Id
        plugin - the Plugin
      • find

        public static Image find​(int nKey)
        Returns an instance of a image whose identifier is specified in parameter
        Parameters:
        nKey - The image primary key
        plugin - the Plugin
        Returns:
        an instance of Image
      • findWihtBinary

        public static Image findWihtBinary​(int nKey)
        Returns an instance of a image whose identifier is specified in parameter
        Parameters:
        nKey - The image primary key
        plugin - the Plugin
        Returns:
        an instance of Image
      • getImagesList

        public static java.util.List<Image> getImagesList()
        Load the data of all the image objects and returns them in form of a list
        Parameters:
        plugin - the Plugin
        Returns:
        the list which contains the data of all the image objects
      • getImagesListWithBinary

        public static java.util.List<Image> getImagesListWithBinary()
        Load the data of all the image objects and returns them in form of a list
        Parameters:
        plugin - the Plugin
        Returns:
        the list which contains the data of all the image objects
      • getIdsList

        public static java.util.List<java.lang.Integer> getIdsList​(int nIdGallery)
        Load the ids image of gallery
        Parameters:
        nIdGallery - the nIdGallery
        Returns:
        the list which contains the data of all the image objects
      • getIdsList

        public static java.util.List<java.lang.Integer> getIdsList()
        Load all ids list
        Parameters:
        plugin - the Plugin
        Returns:
        the list which contains the data of all the image objects
      • getIdsListLinkedToGallery

        public static java.util.List<java.lang.Integer> getIdsListLinkedToGallery​(int nIdGallery)
        Load the ids image linked with gallery
        Parameters:
        nIdGallery - the nIdGallery
        Returns:
        the list which contains the data of all the image objects
      • getImagesByIdsWithBinary

        public static java.util.List<Image> getImagesByIdsWithBinary​(java.util.List<java.lang.Integer> listIds)
        Load images by ids
        Parameters:
        plugin - the Plugin
        Returns:
        the list which contains the data of all the image objects