org.activiti.engine.impl.persistence.entity
类 AttachmentEntity

java.lang.Object
  继承者 org.activiti.engine.impl.persistence.entity.AttachmentEntity
所有已实现的接口:
Serializable, HasRevision, PersistentObject, Attachment

public class AttachmentEntity
extends Object
implements Attachment, PersistentObject, HasRevision, Serializable

作者:
Tom Baeyens
另请参见:
序列化表格

字段摘要
protected  ByteArrayEntity content
           
protected  String contentId
           
protected  String description
           
protected  String id
           
protected  String name
           
protected  String processInstanceId
           
protected  int revision
           
protected  String taskId
           
protected  String type
           
protected  String url
           
 
构造方法摘要
AttachmentEntity()
           
 
方法摘要
 ByteArrayEntity getContent()
           
 String getContentId()
           
 String getDescription()
          long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.
 String getId()
          unique id for this attachment
 String getName()
          free user defined short (max 255 chars) name for this attachment
 Object getPersistentState()
          Returns a representation of the object, as would be stored in the database.
 String getProcessInstanceId()
          reference to the process instance to which this attachment is associated.
 int getRevision()
           
 int getRevisionNext()
           
 String getTaskId()
          reference to the task to which this attachment is associated.
 String getType()
          indication of the type of content that this attachment refers to.
 String getUrl()
          the remote URL in case this is remote content.
 void setContent(ByteArrayEntity content)
           
 void setContentId(String contentId)
           
 void setDescription(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.
 void setId(String id)
           
 void setName(String name)
          free user defined short (max 255 chars) name for this attachment
 void setProcessInstanceId(String processInstanceId)
           
 void setRevision(int revision)
           
 void setTaskId(String taskId)
           
 void setType(String type)
           
 void setUrl(String url)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

id

protected String id

revision

protected int revision

name

protected String name

description

protected String description

type

protected String type

taskId

protected String taskId

processInstanceId

protected String processInstanceId

url

protected String url

contentId

protected String contentId

content

protected ByteArrayEntity content
构造方法详细信息

AttachmentEntity

public AttachmentEntity()
方法详细信息

getPersistentState

public Object getPersistentState()
从接口 PersistentObject 复制的描述
Returns 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.

指定者:
接口 PersistentObject 中的 getPersistentState

getRevisionNext

public int getRevisionNext()
指定者:
接口 HasRevision 中的 getRevisionNext

getId

public String getId()
从接口 Attachment 复制的描述
unique id for this attachment

指定者:
接口 PersistentObject 中的 getId
指定者:
接口 Attachment 中的 getId

setId

public void setId(String id)
指定者:
接口 PersistentObject 中的 setId

getRevision

public int getRevision()
指定者:
接口 HasRevision 中的 getRevision

setRevision

public void setRevision(int revision)
指定者:
接口 HasRevision 中的 setRevision

getName

public String getName()
从接口 Attachment 复制的描述
free user defined short (max 255 chars) name for this attachment

指定者:
接口 Attachment 中的 getName

setName

public void setName(String name)
从接口 Attachment 复制的描述
free user defined short (max 255 chars) name for this attachment

指定者:
接口 Attachment 中的 setName

getDescription

public String getDescription()
从接口 Attachment 复制的描述
long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.

指定者:
接口 Attachment 中的 getDescription

setDescription

public void setDescription(String description)
从接口 Attachment 复制的描述
long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.

指定者:
接口 Attachment 中的 setDescription

getType

public String getType()
从接口 Attachment 复制的描述
indication of the type of content that this attachment refers to. Can be mime type or any other indication.

指定者:
接口 Attachment 中的 getType

setType

public void setType(String type)

getTaskId

public String getTaskId()
从接口 Attachment 复制的描述
reference to the task to which this attachment is associated.

指定者:
接口 Attachment 中的 getTaskId

setTaskId

public void setTaskId(String taskId)

getProcessInstanceId

public String getProcessInstanceId()
从接口 Attachment 复制的描述
reference to the process instance to which this attachment is associated.

指定者:
接口 Attachment 中的 getProcessInstanceId

setProcessInstanceId

public void setProcessInstanceId(String processInstanceId)

getUrl

public String getUrl()
从接口 Attachment 复制的描述
the remote URL in case this is remote content. If the attachment content was uploaded with an input stream, then this method returns null and the content can be fetched with TaskService.getAttachmentContent(String).

指定者:
接口 Attachment 中的 getUrl

setUrl

public void setUrl(String url)

getContentId

public String getContentId()

setContentId

public void setContentId(String contentId)

getContent

public ByteArrayEntity getContent()

setContent

public void setContent(ByteArrayEntity content)


Copyright © 2013 Alfresco. All rights reserved.