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:
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 of
file entities.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface IFileDataEntity
ATTR_DATA, ATTR_ENTITY, COL_DATAFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()Gets the file-data in binary formgetId()Gets the meta entity of this data entityvoidsetData(byte[] data) Sets the file-data in binary formvoidsetMetaEntity(TMeta metaEntity) Sets the meta entity of this data entityMethods inherited from class AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode, toStringMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Field Details
-
data
@NotNull protected @NotNull byte[] data -
metaEntity
-
-
Constructor Details
-
AFileDataEntity
public AFileDataEntity()
-
-
Method Details
-
getId
- Specified by:
getIdin interfacede.xima.cmn.dao.interfaces.IEntity<TMeta extends IScopedFileMetaEntity<?,?>>
-
getData
public byte[] getData()Gets the file-data in binary form- Specified by:
getDatain interfaceIFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>> - Returns:
- the file-data
-
setData
public void setData(byte[] data) Sets the file-data in binary form- Specified by:
setDatain interfaceIFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>> - Parameters:
data- the file-data to set
-
getMetaEntity
Description copied from interface:IFileDataEntityGets the meta entity of this data entity- Specified by:
getMetaEntityin interfaceIFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>> - Returns:
- the meta entity
-
setMetaEntity
Description copied from interface:IFileDataEntitySets the meta entity of this data entity- Specified by:
setMetaEntityin interfaceIFileDataEntity<TMeta extends IScopedFileMetaEntity<?,?>> - Parameters:
metaEntity- the entity to set
-