Interface IFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>>

Type Parameters:
TMeta - type of the meta file entity
All Superinterfaces:
Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>, de.xima.cmn.dao.interfaces.IEntity<Long>, Serializable
All Known Implementing Classes:
AFileDataEntity, ProjectFileData, UserPortalFileData

public interface IFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>> extends de.xima.cmn.dao.interfaces.IEntity<Long>
Common interface for the data of a file entity
Since:
8.2.0
Author:
XIMA MEDIA GmbH
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    JPA attribute name for the getData() field.
    static final String
    JPA attribute name for the getMetaEntity() field.
    static final String
    Database column name for the getData() field.

    Fields inherited from interface de.xima.cmn.dao.interfaces.IEntity

    ATTR_ID
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Gets the file-data in binary form
    Gets the meta entity of this data entity
    void
    setData(byte[] data)
    Sets the file-data in binary form
    void
    Sets the meta entity of this data entity

    Methods inherited from interface Comparable

    compareTo

    Methods inherited from interface de.xima.cmn.dao.interfaces.IEntity

    getId, isPersisted, setId
  • Field Details

  • Method Details

    • getData

      byte[] getData()
      Gets the file-data in binary form
      Returns:
      the file-data
    • setData

      void setData(byte[] data)
      Sets the file-data in binary form
      Parameters:
      data - the file-data to set
    • getMetaEntity

      TMeta getMetaEntity()
      Gets the meta entity of this data entity
      Returns:
      the meta entity
    • setMetaEntity

      void setMetaEntity(TMeta entity)
      Sets the meta entity of this data entity
      Parameters:
      entity - the entity to set