Class BinaryData<T extends Comet3Entity>

Type Parameters:
T - the type parameter
All Implemented Interfaces:
Serializable

public abstract class BinaryData<T extends Comet3Entity> extends Comet3Entity
The type Binary data. For internal use only
See Also:
  • Constructor Details

    • BinaryData

      public BinaryData()
      Instantiates a new Binary data.
    • BinaryData

      public BinaryData(String session, T owner)
      Instantiates a new Binary data.
      Parameters:
      session - the session
      owner - the owner
  • Method Details

    • calculateFileId

      public abstract String calculateFileId()
      Calculate file id string.
      Returns:
      the string
    • getFileId

      public String getFileId()
      Gets file id.
      Returns:
      the file id
    • setFileId

      public void setFileId(String fileId)
      Sets file id.
      Parameters:
      fileId - the file id
    • getMimeType

      public String getMimeType()
      Gets mime type.
      Returns:
      the mime type
    • setMimeType

      public void setMimeType(String mimeType)
      Sets mime type.
      Parameters:
      mimeType - the mime type
    • getFileSize

      public int getFileSize()
      Gets file size.
      Returns:
      the file size
    • setFileSize

      public void setFileSize(int fileSize)
      Sets file size.
      Parameters:
      fileSize - the file size
    • getContent

      public byte[] getContent()
      Get content byte [ ].
      Returns:
      the byte [ ]
    • setContent

      public void setContent(byte[] content)
      Sets content.
      Parameters:
      content - the content
    • getOwner

      public T getOwner()
      Gets owner.
      Returns:
      the owner
    • setOwner

      public void setOwner(T owner)
      Sets owner.
      Parameters:
      owner - the owner
    • getContextSession

      public String getContextSession()
      Gets context session.
      Returns:
      the context session
    • setContextSession

      public void setContextSession(String contextSession)
      Sets context session.
      Parameters:
      contextSession - the context session
    • getId

      public int getId()
      Description copied from class: Comet3Entity
      Gets id.
      Overrides:
      getId in class Comet3Entity
      Returns:
      the id
    • setId

      public void setId(int id)
      Description copied from class: Comet3Entity
      Sets id.
      Overrides:
      setId in class Comet3Entity
      Parameters:
      id - the id
    • getOwnerClass

      public Class<?> getOwnerClass()
      Gets owner class.
      Returns:
      the owner class