Class HistoricVariableInstanceEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
org.flowable.variable.service.impl.persistence.entity.AbstractVariableServiceEntity
org.flowable.variable.service.impl.persistence.entity.HistoricVariableInstanceEntityImpl
- All Implemented Interfaces:
Serializable
,HistoricData
,HasRevision
,Entity
,HistoricVariableInstance
,ValueFields
,HistoricVariableInstanceEntity
public class HistoricVariableInstanceEntityImpl
extends AbstractVariableServiceEntity
implements HistoricVariableInstanceEntity, Serializable
- Author:
- Christian Lipphardt (camunda), Joram Barrez
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteArrayRef
protected Object
protected Date
protected Double
protected String
protected Date
protected Long
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected VariableType
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes()
Returns the time when the variable was created.protected String
The process instance reference.Returns the time when the value of the variable was last updated.getName()
Returns a representation of the object, as would be stored in the database.The process instance reference.getTime()
getValue()
void
setBytes
(byte[] bytes) Sets the byte array value.void
setCachedValue
(Object cachedValue) void
setCreateTime
(Date createTime) void
setDoubleValue
(Double doubleValue) Sets the double value.void
setExecutionId
(String executionId) void
setLastUpdatedTime
(Date lastUpdatedTime) void
setLongValue
(Long longValue) Sets the long value.void
setMetaInfo
(String metaInfo) void
void
setProcessInstanceId
(String processInstanceId) void
setScopeId
(String scopeId) void
setScopeType
(String scopeType) void
setSubScopeId
(String subScopeId) void
void
setTextValue
(String textValue) Sets the first text value.void
setTextValue2
(String textValue2) Sets second text value.void
setVariableType
(VariableType variableType) toString()
Methods inherited from class org.flowable.variable.service.impl.persistence.entity.AbstractVariableServiceEntity
getIdPrefix
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
Methods inherited from interface org.flowable.variable.api.history.HistoricVariableInstance
getId
-
Field Details
-
name
-
variableType
-
processInstanceId
-
executionId
-
taskId
-
scopeId
-
subScopeId
-
scopeType
-
createTime
-
lastUpdatedTime
-
longValue
-
doubleValue
-
textValue
-
textValue2
-
byteArrayRef
-
metaInfo
-
cachedValue
-
-
Constructor Details
-
HistoricVariableInstanceEntityImpl
public HistoricVariableInstanceEntityImpl()
-
-
Method Details
-
getPersistentState
Description copied from interface:Entity
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.- Specified by:
getPersistentState
in interfaceEntity
-
getValue
- Specified by:
getValue
in interfaceHistoricVariableInstance
-
getBytes
public byte[] getBytes()- Specified by:
getBytes
in interfaceValueFields
- Returns:
- the byte array value, if any, or null.
-
setBytes
public void setBytes(byte[] bytes) Description copied from interface:ValueFields
Sets the byte array value. A value of null is allowed.- Specified by:
setBytes
in interfaceValueFields
-
getVariableTypeName
- Specified by:
getVariableTypeName
in interfaceHistoricVariableInstance
-
getVariableName
- Specified by:
getVariableName
in interfaceHistoricVariableInstance
-
getVariableType
- Specified by:
getVariableType
in interfaceHistoricVariableInstanceEntity
-
getName
- Specified by:
getName
in interfaceValueFields
- Returns:
- the name of the variable
-
setName
- Specified by:
setName
in interfaceHistoricVariableInstanceEntity
-
getLongValue
- Specified by:
getLongValue
in interfaceValueFields
- Returns:
- the long value, if any, or null.
-
setLongValue
Description copied from interface:ValueFields
Sets the long value. A value of null is allowed.- Specified by:
setLongValue
in interfaceValueFields
-
getDoubleValue
- Specified by:
getDoubleValue
in interfaceValueFields
- Returns:
- the double value, if any, or null.
-
setDoubleValue
Description copied from interface:ValueFields
Sets the double value. A value of null is allowed.- Specified by:
setDoubleValue
in interfaceValueFields
-
getTextValue
- Specified by:
getTextValue
in interfaceValueFields
- Returns:
- the first text value, if any, or null.
-
setTextValue
Description copied from interface:ValueFields
Sets the first text value. A value of null is allowed.- Specified by:
setTextValue
in interfaceValueFields
-
getTextValue2
- Specified by:
getTextValue2
in interfaceValueFields
- Returns:
- the second text value, if any, or null.
-
setTextValue2
Description copied from interface:ValueFields
Sets second text value. A value of null is allowed.- Specified by:
setTextValue2
in interfaceValueFields
-
getCachedValue
- Specified by:
getCachedValue
in interfaceValueFields
-
setCachedValue
- Specified by:
setCachedValue
in interfaceValueFields
-
setVariableType
- Specified by:
setVariableType
in interfaceHistoricVariableInstanceEntity
-
setProcessInstanceId
- Specified by:
setProcessInstanceId
in interfaceHistoricVariableInstanceEntity
-
getProcessInstanceId
Description copied from interface:HistoricVariableInstance
The process instance reference.- Specified by:
getProcessInstanceId
in interfaceHistoricVariableInstance
- Specified by:
getProcessInstanceId
in interfaceValueFields
- Returns:
- the process instance id of the variable
-
getTaskId
- Specified by:
getTaskId
in interfaceHistoricVariableInstance
- Specified by:
getTaskId
in interfaceValueFields
- Returns:
- the task id of the variable
-
setTaskId
- Specified by:
setTaskId
in interfaceHistoricVariableInstanceEntity
-
getCreateTime
Description copied from interface:HistoricVariableInstance
Returns the time when the variable was created.- Specified by:
getCreateTime
in interfaceHistoricVariableInstance
-
setCreateTime
- Specified by:
setCreateTime
in interfaceHistoricVariableInstanceEntity
-
getLastUpdatedTime
Description copied from interface:HistoricVariableInstance
Returns the time when the value of the variable was last updated. Note that aHistoricVariableInstance
only contains the latest value of the variable.- Specified by:
getLastUpdatedTime
in interfaceHistoricVariableInstance
-
setLastUpdatedTime
- Specified by:
setLastUpdatedTime
in interfaceHistoricVariableInstanceEntity
-
getTime
- Specified by:
getTime
in interfaceHistoricData
-
getExecutionId
Description copied from interface:HistoricVariableInstance
The process instance reference.- Specified by:
getExecutionId
in interfaceHistoricVariableInstance
- Specified by:
getExecutionId
in interfaceValueFields
- Returns:
- the execution id of the variable
-
setExecutionId
- Specified by:
setExecutionId
in interfaceHistoricVariableInstanceEntity
-
getScopeId
- Specified by:
getScopeId
in interfaceHistoricVariableInstance
- Specified by:
getScopeId
in interfaceValueFields
- Returns:
- the scope id of the variable
-
setScopeId
- Specified by:
setScopeId
in interfaceHistoricVariableInstanceEntity
-
getSubScopeId
- Specified by:
getSubScopeId
in interfaceHistoricVariableInstance
- Specified by:
getSubScopeId
in interfaceValueFields
- Returns:
- the sub scope id of the variable
-
setSubScopeId
- Specified by:
setSubScopeId
in interfaceHistoricVariableInstanceEntity
-
getScopeType
- Specified by:
getScopeType
in interfaceHistoricVariableInstance
- Specified by:
getScopeType
in interfaceValueFields
- Returns:
- the scope type of the variable
-
setScopeType
- Specified by:
setScopeType
in interfaceHistoricVariableInstanceEntity
-
getMetaInfo
- Specified by:
getMetaInfo
in interfaceHistoricVariableInstance
-
setMetaInfo
- Specified by:
setMetaInfo
in interfaceHistoricVariableInstanceEntity
-
getByteArrayRef
- Specified by:
getByteArrayRef
in interfaceHistoricVariableInstanceEntity
-
getEngineType
-
toString
-