Class BinaryData<T extends Comet3Entity>

  • Type Parameters:
    T - the type parameter
    All Implemented Interfaces:
    java.io.Serializable

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

      • BinaryData

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

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

      • calculateFileId

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

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

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

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

        public void setMimeType​(java.lang.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 java.lang.String getContextSession()
        Gets context session.
        Returns:
        the context session
      • setContextSession

        public void setContextSession​(java.lang.String contextSession)
        Sets context session.
        Parameters:
        contextSession - the context session
      • setId

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

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