Package de.xima.fc.entities.common.file
Class AFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>>
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.common.file.AFileDataEntity<TMeta>
-
- Type Parameters:
TMeta
- type of the meta file entity
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,IFileDataEntity<TMeta>
,ITransferable
,ITransferableEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
ClientPortalConfigFileData
,ProjectFileData
,UserPortalFileData
@MappedSuperclass public abstract class AFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>> extends AbstractEntity implements de.xima.cmn.dao.interfaces.IEntity<Long>, IFileDataEntity<TMeta>
Abstract base class for entities providing the actual file data offile entities
.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected @javax.validation.constraints.NotNull byte[]
data
protected TMeta
metaEntity
-
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
-
Fields inherited from interface de.xima.fc.entities.interfaces.file.IFileDataEntity
ATTR_DATA, ATTR_ENTITY, COL_DATA
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
-
Constructor Summary
Constructors Constructor Description AFileDataEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getData()
Gets the file-data in binary formLong
getId()
TMeta
getMetaEntity()
Gets the meta entity of this data entityvoid
setData(byte[] data)
Sets the file-data in binary formvoid
setMetaEntity(TMeta metaEntity)
Sets the meta entity of this data entity-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
data
@NotNull protected @javax.validation.constraints.NotNull byte[] data
-
metaEntity
@NotNull protected TMeta extends IScopedFileMetaEntity<?,?> metaEntity
-
-
Method Detail
-
getId
public Long getId()
- Specified by:
getId
in interfacede.xima.cmn.dao.interfaces.IEntity<TMeta extends IScopedFileMetaEntity<?,?>>
-
getData
public byte[] getData()
Gets the file-data in binary form- Specified by:
getData
in interfaceIFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>>
- Returns:
- the file-data
-
setData
public void setData(byte[] data)
Sets the file-data in binary form- Specified by:
setData
in interfaceIFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>>
- Parameters:
data
- the file-data to set
-
getMetaEntity
public TMeta getMetaEntity()
Description copied from interface:IFileDataEntity
Gets the meta entity of this data entity- Specified by:
getMetaEntity
in interfaceIFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>>
- Returns:
- the meta entity
-
setMetaEntity
public void setMetaEntity(TMeta metaEntity)
Description copied from interface:IFileDataEntity
Sets the meta entity of this data entity- Specified by:
setMetaEntity
in interfaceIFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>>
- Parameters:
metaEntity
- the entity to set
-
-