Class UploadFile

java.lang.Object
com.ubs.backend.classes.database.UploadFile

@Entity public class UploadFile extends Object
Dataclass for Files uploaded to the Database
Since:
17.07.2021
Author:
Marc Andri Fuchs
  • Field Details

    • fileID

      private long fileID
      The ID of this UploadFile in the Database
      Since:
      17.07.2021
    • fileName

      private String fileName
      The Name of this UploadFile
      Since:
      17.07.2021
    • fileType

      private String fileType
      The MimeType of this UploadFile
      Since:
      17.07.2021
    • content

      private Blob content
      The Content (BLOB) of this UploadFile
      Since:
      17.07.2021
  • Constructor Details

    • UploadFile

      public UploadFile(String fileType, String fileName, Blob content)
      Default Constructor
      Parameters:
      fileType - the MimeType of the File
      fileName - the Name of the File
      content - the Content of the File
      Since:
      17.07.2021
    • UploadFile

      public UploadFile()
      No-args constructor
      Since:
      17.07.2021
  • Method Details

    • getFileID

      public long getFileID()
      Returns:
      the ID of this UploadFile
      Since:
      17.07.2021
    • setFileID

      public void setFileID(long fileID)
      Parameters:
      fileID - the new ID for this UploadFile
      Since:
      17.07.2021
    • getFileType

      public String getFileType()
      Returns:
      the MimeType of this UploadFile
      Since:
      17.07.2021
    • setFileType

      public void setFileType(String filename)
      Parameters:
      filename - the new Name for this UploadFile
      Since:
      17.07.2021
    • getContent

      public Blob getContent()
      Returns:
      the Content of the UploadFile as a BLOB
      Since:
      17.07.2021
    • setContent

      public void setContent(Blob content)
      Parameters:
      content - the new Content of this UploadFile
      Since:
      17.07.2021
    • getFileName

      public String getFileName()
      Returns:
      the Name of this UploadFile
      Since:
      17.07.2021
    • setFileName

      public void setFileName(String fileName)
      Parameters:
      fileName - the new Name for this UploadFile
      Since:
      17.07.2021
    • answerCount

      public int answerCount()
      Returns:
      Since:
      17.07.2021
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object