Package de.terrestris.shoguncore.model
Class File
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.File
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ImageFile
@Entity public class File extends PersistentObject
This class represents a file which is stored as a bytearray in the database- Author:
- Johannes Weskamm, Daniel Koch
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description File()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)BooleangetActive()byte[]getFile()StringgetFileName()StringgetFileType()inthashCode()voidsetActive(Boolean active)voidsetFile(byte[] file)voidsetFileName(String fileName)voidsetFileType(String fileType)-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
Method Detail
-
getActive
public Boolean getActive()
- Returns:
- the active
-
setActive
public void setActive(Boolean active)
- Parameters:
active- the active to set
-
getFileName
public String getFileName()
- Returns:
- the fileName
-
setFileName
public void setFileName(String fileName)
- Parameters:
fileName- the fileName to set
-
getFileType
public String getFileType()
- Returns:
- the fileType
-
setFileType
public void setFileType(String fileType)
- Parameters:
fileType- the fileType to set
-
getFile
public byte[] getFile()
- Returns:
- the file
-
setFile
public void setFile(byte[] file)
- Parameters:
file- the file to set
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
-