Class ImageService

    • Constructor Detail

      • ImageService

        public ImageService()
    • Method Detail

      • create

        public Image create​(Image image)
        Description copied from interface: IImageService
        Create an instance of the image class
        Specified by:
        create in interface IImageService
        Parameters:
        image - The instance of the Image which contains the informations to store
        Returns:
        The instance of image which has been created with its primary key.
      • update

        public Image update​(Image image)
        Description copied from interface: IImageService
        Update of the image which is specified in parameter
        Specified by:
        update in interface IImageService
        Parameters:
        image - The instance of the Image which contains the data to store
        Returns:
        The instance of the image which has been updated
      • remove

        public void remove​(int nImageId)
        Description copied from interface: IImageService
        Remove the image whose identifier is specified in parameter
        Specified by:
        remove in interface IImageService
        Parameters:
        nImageId - The image Id
      • findByPrimaryKey

        public Image findByPrimaryKey​(int nKey)
        Description copied from interface: IImageService
        Returns an instance of a image whose identifier is specified in parameter
        Specified by:
        findByPrimaryKey in interface IImageService
        Parameters:
        nKey - The image primary key
        Returns:
        an instance of Image
      • findImageWithBinary

        public Image findImageWithBinary​(int nKey)
        Description copied from interface: IImageService
        Returns an instance of a image whose identifier is specified in parameter
        Specified by:
        findImageWithBinary in interface IImageService
        Parameters:
        nKey - The image primary key
        Returns:
        an instance of Image
      • getImagesList

        public List<Image> getImagesList()
        Description copied from interface: IImageService
        Load the data of all the image objects and returns them in form of a list
        Specified by:
        getImagesList in interface IImageService
        Returns:
        the list which contains the data of all the image objects