Package de.terrestris.shoguncore.model
Class ImageFile
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.File
-
- de.terrestris.shoguncore.model.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 Summary
Constructors Constructor Description ImageFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.IntegergetHeight()byte[]getThumbnail()java.lang.IntegergetWidth()inthashCode()voidsetHeight(java.lang.Integer height)voidsetThumbnail(byte[] thumbnail)voidsetWidth(java.lang.Integer width)-
Methods inherited from class de.terrestris.shoguncore.model.File
getActive, getFile, getFileName, getFileType, setActive, setFile, setFileName, setFileType
-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
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()
-
-