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:
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(Object obj)IntegergetHeight()byte[]getThumbnail()IntegergetWidth()inthashCode()voidsetHeight(Integer height)voidsetThumbnail(byte[] thumbnail)voidsetWidth(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 Integer getWidth()
- Returns:
- the width
-
setWidth
public void setWidth(Integer width)
- Parameters:
width- the width to set
-
getHeight
public Integer getHeight()
- Returns:
- the height
-
setHeight
public void setHeight(Integer height)
- Parameters:
height- the height to set
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
-