Class ImageFile

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class ImageFile
    extends File
    This class represents an Image which is stored as a bytearray in the database
    Author:
    Johannes Weskamm, Daniel Koch
    See Also:
    Serialized Form
    • Constructor Detail

      • ImageFile

        public ImageFile()
    • Method Detail

      • getThumbnail

        public byte[] getThumbnail()
        Returns:
        the thumbnail
      • setThumbnail

        public void setThumbnail​(byte[] thumbnail)
        Parameters:
        thumbnail - the thumbnail to set
      • getWidth

        public java.lang.Integer getWidth()
        Returns:
        the width
      • setWidth

        public void setWidth​(java.lang.Integer width)
        Parameters:
        width - the width to set
      • getHeight

        public java.lang.Integer getHeight()
        Returns:
        the height
      • setHeight

        public void setHeight​(java.lang.Integer height)
        Parameters:
        height - the height to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class File
        See Also:
        According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class File
        See Also:
        According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate