Class AttachmentEntity
java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.AttachmentEntity
- All Implemented Interfaces:
- Serializable,- DbEntity,- HasDbRevision,- HistoricEntity,- Attachment
public class AttachmentEntity
extends Object
implements Attachment, DbEntity, HasDbRevision, HistoricEntity, Serializable
- Author:
- Tom Baeyens
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThe time when the attachment was created.long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.getId()unique id for this attachmentgetName()free user defined short (max 255 chars) name for this attachmentReturns a representation of the object, as would be stored in the database.reference to the process instance to which this attachment is associated.The time the historic attachment will be removed.intintreference to the root process instance id of the process instance on which this attachment was madereference to the task to which this attachment is associated.getType()indication of the type of content that this attachment refers to.getUrl()the remote URL in case this is remote content.voidsetContent(ByteArrayEntity content) voidsetContentId(String contentId) voidsetCreateTime(Date createTime) voidsetDescription(String description) long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.voidvoidfree user defined short (max 255 chars) name for this attachmentvoidsetProcessInstanceId(String processInstanceId) voidsetRemovalTime(Date removalTime) voidsetRevision(int revision) voidsetRootProcessInstanceId(String rootProcessInstanceId) voidvoidsetTenantId(String tenantId) voidvoidtoString()
- 
Field Details- 
id
- 
revisionprotected int revision
- 
name
- 
description
- 
type
- 
taskId
- 
processInstanceId
- 
url
- 
contentId
- 
- 
tenantId
- 
createTime
- 
rootProcessInstanceId
- 
removalTime
 
- 
- 
Constructor Details- 
AttachmentEntitypublic AttachmentEntity()
 
- 
- 
Method Details- 
getPersistentStateDescription copied from interface:DbEntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
- getPersistentStatein interface- DbEntity
 
- 
getRevisionNextpublic int getRevisionNext()- Specified by:
- getRevisionNextin interface- HasDbRevision
 
- 
getIdDescription copied from interface:Attachmentunique id for this attachment- Specified by:
- getIdin interface- Attachment
- Specified by:
- getIdin interface- DbEntity
 
- 
setId
- 
getRevisionpublic int getRevision()- Specified by:
- getRevisionin interface- HasDbRevision
 
- 
setRevisionpublic void setRevision(int revision) - Specified by:
- setRevisionin interface- HasDbRevision
 
- 
getNameDescription copied from interface:Attachmentfree user defined short (max 255 chars) name for this attachment- Specified by:
- getNamein interface- Attachment
 
- 
setNameDescription copied from interface:Attachmentfree user defined short (max 255 chars) name for this attachment- Specified by:
- setNamein interface- Attachment
 
- 
getDescriptionDescription copied from interface:Attachmentlong (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.- Specified by:
- getDescriptionin interface- Attachment
 
- 
setDescriptionDescription copied from interface:Attachmentlong (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.- Specified by:
- setDescriptionin interface- Attachment
 
- 
getTypeDescription copied from interface:Attachmentindication of the type of content that this attachment refers to. Can be mime type or any other indication.- Specified by:
- getTypein interface- Attachment
 
- 
setType
- 
getTaskIdDescription copied from interface:Attachmentreference to the task to which this attachment is associated.- Specified by:
- getTaskIdin interface- Attachment
 
- 
setTaskId
- 
getProcessInstanceIdDescription copied from interface:Attachmentreference to the process instance to which this attachment is associated.- Specified by:
- getProcessInstanceIdin interface- Attachment
 
- 
setProcessInstanceId
- 
getUrlDescription copied from interface:Attachmentthe remote URL in case this is remote content. If the attachment content wasuploaded with an input stream, then this method returns null and the content can be fetched withTaskService.getAttachmentContent(String).- Specified by:
- getUrlin interface- Attachment
 
- 
setUrl
- 
getContentId
- 
setContentId
- 
getContent
- 
setContent
- 
getTenantId
- 
setTenantId
- 
getCreateTimeDescription copied from interface:AttachmentThe time when the attachment was created.- Specified by:
- getCreateTimein interface- Attachment
 
- 
setCreateTime
- 
getRootProcessInstanceIdDescription copied from interface:Attachmentreference to the root process instance id of the process instance on which this attachment was made- Specified by:
- getRootProcessInstanceIdin interface- Attachment
 
- 
getRemovalTimeDescription copied from interface:AttachmentThe time the historic attachment will be removed.- Specified by:
- getRemovalTimein interface- Attachment
 
- 
setRemovalTime
- 
setRootProcessInstanceId
- 
toString
 
-