Class HistoricVariableInstanceEntityImpl
- java.lang.Object
-
- org.activiti.engine.impl.persistence.entity.AbstractEntity
-
- org.activiti.engine.impl.persistence.entity.HistoricVariableInstanceEntityImpl
-
- All Implemented Interfaces:
Serializable,HistoricData,HistoricVariableInstance,BulkDeleteable,HasRevision,Entity,HistoricVariableInstanceEntity,ValueFields
public class HistoricVariableInstanceEntityImpl extends AbstractEntity implements HistoricVariableInstanceEntity, BulkDeleteable, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteArrayRefbyteArrayRefprotected ObjectcachedValueprotected DatecreateTimeprotected DoubledoubleValueprotected StringexecutionIdprotected DatelastUpdatedTimeprotected LonglongValueprotected Stringnameprotected StringprocessInstanceIdprotected StringtaskIdprotected StringtextValueprotected StringtextValue2protected VariableTypevariableType-
Fields inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, revision
-
-
Constructor Summary
Constructors Constructor Description HistoricVariableInstanceEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteArrayRefgetByteArrayRef()byte[]getBytes()ObjectgetCachedValue()DategetCreateTime()Returns the time when the variable was created.DoublegetDoubleValue()StringgetExecutionId()DategetLastUpdatedTime()Returns the time when the value of the variable was last updated.LonggetLongValue()StringgetName()ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.StringgetProcessInstanceId()The process instance reference.StringgetTaskId()StringgetTextValue()StringgetTextValue2()DategetTime()ObjectgetValue()StringgetVariableName()VariableTypegetVariableType()StringgetVariableTypeName()voidsetBytes(byte[] bytes)Sets the byte array value.voidsetCachedValue(Object cachedValue)voidsetCreateTime(Date createTime)voidsetDoubleValue(Double doubleValue)Sets the double value.voidsetExecutionId(String executionId)voidsetLastUpdatedTime(Date lastUpdatedTime)voidsetLongValue(Long longValue)Sets the long value.voidsetName(String name)voidsetProcessInstanceId(String processInstanceId)voidsetTaskId(String taskId)voidsetTextValue(String textValue)Sets the first text value.voidsetTextValue2(String textValue2)Sets second text value.voidsetVariableType(VariableType variableType)StringtoString()-
Methods inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
getId, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setRevision, setUpdated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.activiti.engine.impl.persistence.entity.Entity
getId, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setUpdated
-
Methods inherited from interface org.activiti.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Methods inherited from interface org.activiti.engine.history.HistoricVariableInstance
getId
-
-
-
-
Field Detail
-
name
protected String name
-
variableType
protected VariableType variableType
-
processInstanceId
protected String processInstanceId
-
executionId
protected String executionId
-
taskId
protected String taskId
-
createTime
protected Date createTime
-
lastUpdatedTime
protected Date lastUpdatedTime
-
longValue
protected Long longValue
-
doubleValue
protected Double doubleValue
-
textValue
protected String textValue
-
textValue2
protected String textValue2
-
byteArrayRef
protected ByteArrayRef byteArrayRef
-
cachedValue
protected Object cachedValue
-
-
Method Detail
-
getPersistentState
public Object getPersistentState()
Description copied from interface:EntityReturns 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 interfaceEntity
-
getValue
public Object getValue()
- Specified by:
getValuein interfaceHistoricVariableInstance
-
getBytes
public byte[] getBytes()
- Specified by:
getBytesin interfaceValueFields- Returns:
- the byte array value, if any, or null.
-
setBytes
public void setBytes(byte[] bytes)
Description copied from interface:ValueFieldsSets the byte array value. A value of null is allowed.- Specified by:
setBytesin interfaceValueFields
-
getVariableTypeName
public String getVariableTypeName()
- Specified by:
getVariableTypeNamein interfaceHistoricVariableInstance
-
getVariableName
public String getVariableName()
- Specified by:
getVariableNamein interfaceHistoricVariableInstance
-
getVariableType
public VariableType getVariableType()
- Specified by:
getVariableTypein interfaceHistoricVariableInstanceEntity
-
getName
public String getName()
- Specified by:
getNamein interfaceValueFields- Returns:
- the name of the variable
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceHistoricVariableInstanceEntity
-
getLongValue
public Long getLongValue()
- Specified by:
getLongValuein interfaceValueFields- Returns:
- the long value, if any, or null.
-
setLongValue
public void setLongValue(Long longValue)
Description copied from interface:ValueFieldsSets the long value. A value of null is allowed.- Specified by:
setLongValuein interfaceValueFields
-
getDoubleValue
public Double getDoubleValue()
- Specified by:
getDoubleValuein interfaceValueFields- Returns:
- the double value, if any, or null.
-
setDoubleValue
public void setDoubleValue(Double doubleValue)
Description copied from interface:ValueFieldsSets the double value. A value of null is allowed.- Specified by:
setDoubleValuein interfaceValueFields
-
getTextValue
public String getTextValue()
- Specified by:
getTextValuein interfaceValueFields- Returns:
- the first text value, if any, or null.
-
setTextValue
public void setTextValue(String textValue)
Description copied from interface:ValueFieldsSets the first text value. A value of null is allowed.- Specified by:
setTextValuein interfaceValueFields
-
getTextValue2
public String getTextValue2()
- Specified by:
getTextValue2in interfaceValueFields- Returns:
- the second text value, if any, or null.
-
setTextValue2
public void setTextValue2(String textValue2)
Description copied from interface:ValueFieldsSets second text value. A value of null is allowed.- Specified by:
setTextValue2in interfaceValueFields
-
getCachedValue
public Object getCachedValue()
- Specified by:
getCachedValuein interfaceValueFields
-
setCachedValue
public void setCachedValue(Object cachedValue)
- Specified by:
setCachedValuein interfaceValueFields
-
setVariableType
public void setVariableType(VariableType variableType)
- Specified by:
setVariableTypein interfaceHistoricVariableInstanceEntity
-
setProcessInstanceId
public void setProcessInstanceId(String processInstanceId)
- Specified by:
setProcessInstanceIdin interfaceHistoricVariableInstanceEntity
-
getProcessInstanceId
public String getProcessInstanceId()
Description copied from interface:HistoricVariableInstanceThe process instance reference.- Specified by:
getProcessInstanceIdin interfaceHistoricVariableInstance- Specified by:
getProcessInstanceIdin interfaceValueFields- Returns:
- the process instance id of the variable
-
getTaskId
public String getTaskId()
- Specified by:
getTaskIdin interfaceHistoricVariableInstance- Specified by:
getTaskIdin interfaceValueFields- Returns:
- the task id of the variable
-
setTaskId
public void setTaskId(String taskId)
- Specified by:
setTaskIdin interfaceHistoricVariableInstanceEntity
-
getCreateTime
public Date getCreateTime()
Description copied from interface:HistoricVariableInstanceReturns the time when the variable was created.- Specified by:
getCreateTimein interfaceHistoricVariableInstance
-
setCreateTime
public void setCreateTime(Date createTime)
- Specified by:
setCreateTimein interfaceHistoricVariableInstanceEntity
-
getLastUpdatedTime
public Date getLastUpdatedTime()
Description copied from interface:HistoricVariableInstanceReturns the time when the value of the variable was last updated. Note that aHistoricVariableInstanceonly contains the latest value of the variable. The actual different value and value changes are recorded inHistoricVariableUpdateinstances, which are captured onHistoryLevelFULL.- Specified by:
getLastUpdatedTimein interfaceHistoricVariableInstance
-
setLastUpdatedTime
public void setLastUpdatedTime(Date lastUpdatedTime)
- Specified by:
setLastUpdatedTimein interfaceHistoricVariableInstanceEntity
-
getExecutionId
public String getExecutionId()
- Specified by:
getExecutionIdin interfaceHistoricVariableInstanceEntity- Specified by:
getExecutionIdin interfaceValueFields- Returns:
- the execution id of the variable
-
setExecutionId
public void setExecutionId(String executionId)
- Specified by:
setExecutionIdin interfaceHistoricVariableInstanceEntity
-
getTime
public Date getTime()
- Specified by:
getTimein interfaceHistoricData
-
getByteArrayRef
public ByteArrayRef getByteArrayRef()
- Specified by:
getByteArrayRefin interfaceHistoricVariableInstanceEntity
-
-