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
FieldsModifier and TypeFieldDescriptionstatic final StringJPA attribute name for thegetData()field.static final StringJPA attribute name for thegetMetaEntity()field.static final StringDatabase column name for thegetData()field.Fields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_ID -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()Gets the file-data in binary formGets the meta entity of this data entityvoidsetData(byte[] data) Sets the file-data in binary formvoidsetMetaEntity(TMeta entity) Sets the meta entity of this data entityMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
getId, isPersisted, setId
-
Field Details
-
COL_DATA
-
ATTR_DATA
-
ATTR_ENTITY
-
-
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
-
setMetaEntity
Sets the meta entity of this data entity- Parameters:
entity- the entity to set
-