Class ImageHome


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

      • create

        public static void create​(Image image)
        Creation of an instance of image
        Parameters:
        image - The instance of image which contains the informations to store
      • update

        public static void update​(Image image)
        Update of image which is specified in parameter
        Parameters:
        image - The instance of image which contains the informations to update
      • updateMetadata

        public static void updateMetadata​(Image image)
        Update metatdata of image which is specified in parameter
        Parameters:
        image - The instance of image which contains the informations to update
      • remove

        public static void remove​(int nIdImage)
        remove image which is specified in parameter
        Parameters:
        nIdImage - The image key to remove
      • removeByTopic

        public static void removeByTopic​(int nTopicId)
        remove all images associated to a given topic
        Parameters:
        nTopicId - The Topic ID
      • findByPrimaryKey

        public static Image findByPrimaryKey​(int nIdImage)
        Load the image Object
        Parameters:
        nIdImage - the image id
        Returns:
        the Image Object
      • getListImages

        public static List<Image> getListImages()
        return the list of all image
        Returns:
        a list of image
      • findByTopic

        public static List<Image> findByTopic​(int nIdTopic)
        Find images for a given topic
        Parameters:
        nIdTopic - The topic ID
        Returns:
        The list