Class ImageService

  • All Implemented Interfaces:
    IImageService

    public class ImageService
    extends java.lang.Object
    implements IImageService
    ImageService
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Image create​(Image image)
      Create an instance of the image class
      Image findByPrimaryKey​(int nKey)
      Returns an instance of a image whose identifier is specified in parameter
      Image findImageWithBinary​(int nKey)
      Returns an instance of a image whose identifier is specified in parameter
      java.util.List<Image> getImagesList()
      Load the data of all the image objects and returns them in form of a list
      void remove​(int nImageId)
      Remove the image whose identifier is specified in parameter
      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
    • 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 java.util.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