Class HistoricVariableInstanceEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.HistoricVariableInstanceEntity
-
- All Implemented Interfaces:
java.io.Serializable
,HistoricVariableInstance
,DbEntity
,DbEntityLifecycleAware
,HasDbRevision
,HistoricEntity
,Nameable
,ValueFields
public class HistoricVariableInstanceEntity extends java.lang.Object implements ValueFields, HistoricVariableInstance, DbEntity, HasDbRevision, HistoricEntity, java.io.Serializable, DbEntityLifecycleAware
- Author:
- Christian Lipphardt (camunda)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityInstanceId
protected ByteArrayField
byteArrayField
protected java.lang.String
caseDefinitionId
protected java.lang.String
caseDefinitionKey
protected java.lang.String
caseExecutionId
protected java.lang.String
caseInstanceId
protected java.util.Date
createTime
protected java.lang.Double
doubleValue
protected java.lang.String
executionId
protected java.lang.String
id
protected static EnginePersistenceLogger
LOG
protected java.lang.Long
longValue
protected java.lang.String
name
protected java.lang.String
processDefinitionId
protected java.lang.String
processDefinitionKey
protected java.lang.String
processInstanceId
protected java.util.Date
removalTime
protected int
revision
protected java.lang.String
rootProcessInstanceId
protected java.lang.String
state
protected java.lang.String
taskId
protected java.lang.String
tenantId
protected java.lang.String
textValue
protected java.lang.String
textValue2
protected TypedValueField
typedValueField
-
Fields inherited from interface org.camunda.bpm.engine.history.HistoricVariableInstance
STATE_CREATED, STATE_DELETED
-
-
Constructor Summary
Constructors Constructor Description HistoricVariableInstanceEntity()
HistoricVariableInstanceEntity(HistoricVariableUpdateEventEntity historyEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
delete()
java.lang.String
getActivityInstanceId()
Returns the corresponding activity instance id.java.lang.String
getActivtyInstanceId()
Deprecated.java.lang.String
getByteArrayId()
byte[]
getByteArrayValue()
java.lang.String
getByteArrayValueId()
java.lang.String
getCaseDefinitionId()
The case definition reference.java.lang.String
getCaseDefinitionKey()
The case definition key reference.java.lang.String
getCaseExecutionId()
Return the corresponding case execution id.java.lang.String
getCaseInstanceId()
The case instance reference.java.util.Date
getCreateTime()
The time when the variable was created.java.lang.Double
getDoubleValue()
java.lang.String
getErrorMessage()
If the variable value could not be loaded, this returns the error message.java.lang.String
getExecutionId()
Return the corresponding execution id.java.lang.String
getId()
java.lang.Long
getLongValue()
java.lang.String
getName()
Returns the name of this variable instance.java.lang.Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.java.lang.String
getProcessDefinitionId()
The process definition reference.java.lang.String
getProcessDefinitionKey()
The process definition key reference.java.lang.String
getProcessInstanceId()
The process instance reference.java.util.Date
getRemovalTime()
The time when the historic variable instance will be removed.int
getRevision()
int
getRevisionNext()
java.lang.String
getRootProcessInstanceId()
The root process instance reference.TypedValueSerializer<?>
getSerializer()
java.lang.String
getSerializerName()
java.lang.String
getState()
The current state of the variable.java.lang.String
getTaskId()
Return the corresponding task id.java.lang.String
getTenantId()
The id of the tenant this variable belongs to.java.lang.String
getTextValue()
java.lang.String
getTextValue2()
TypedValue
getTypedValue()
Returns theTypedValue
of this variable instance.TypedValue
getTypedValue(boolean deserializeValue)
java.lang.String
getTypeName()
Returns the name of the type of this variable instancejava.lang.Object
getValue()
Returns the value of this variable instance.java.lang.String
getVariableName()
Returns the name of this variable instance.java.lang.String
getVariableTypeName()
Returns the name of the type of this variable instancevoid
postLoad()
void
setActivityInstanceId(java.lang.String activityInstanceId)
void
setByteArrayId(java.lang.String byteArrayId)
void
setByteArrayValue(byte[] bytes)
void
setByteArrayValue(ByteArrayEntity byteArrayValue)
void
setCaseDefinitionId(java.lang.String caseDefinitionId)
void
setCaseDefinitionKey(java.lang.String caseDefinitionKey)
void
setCaseExecutionId(java.lang.String caseExecutionId)
void
setCaseInstanceId(java.lang.String caseInstanceId)
void
setCreateTime(java.util.Date createTime)
void
setDoubleValue(java.lang.Double doubleValue)
void
setExecutionId(java.lang.String executionId)
void
setId(java.lang.String id)
void
setLongValue(java.lang.Long longValue)
void
setName(java.lang.String name)
void
setProcessDefinitionId(java.lang.String processDefinitionId)
void
setProcessDefinitionKey(java.lang.String processDefinitionKey)
void
setProcessInstanceId(java.lang.String processInstanceId)
void
setRemovalTime(java.util.Date removalTime)
void
setRevision(int revision)
void
setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
void
setSerializerName(java.lang.String serializerName)
void
setState(java.lang.String state)
void
setTaskId(java.lang.String taskId)
void
setTenantId(java.lang.String tenantId)
void
setTextValue(java.lang.String textValue)
void
setTextValue2(java.lang.String textValue2)
java.lang.String
toString()
void
updateFromEvent(HistoricVariableUpdateEventEntity historyEvent)
-
-
-
Field Detail
-
LOG
protected static final EnginePersistenceLogger LOG
-
id
protected java.lang.String id
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
processDefinitionId
protected java.lang.String processDefinitionId
-
rootProcessInstanceId
protected java.lang.String rootProcessInstanceId
-
processInstanceId
protected java.lang.String processInstanceId
-
taskId
protected java.lang.String taskId
-
executionId
protected java.lang.String executionId
-
activityInstanceId
protected java.lang.String activityInstanceId
-
tenantId
protected java.lang.String tenantId
-
caseDefinitionKey
protected java.lang.String caseDefinitionKey
-
caseDefinitionId
protected java.lang.String caseDefinitionId
-
caseInstanceId
protected java.lang.String caseInstanceId
-
caseExecutionId
protected java.lang.String caseExecutionId
-
name
protected java.lang.String name
-
revision
protected int revision
-
createTime
protected java.util.Date createTime
-
longValue
protected java.lang.Long longValue
-
doubleValue
protected java.lang.Double doubleValue
-
textValue
protected java.lang.String textValue
-
textValue2
protected java.lang.String textValue2
-
state
protected java.lang.String state
-
removalTime
protected java.util.Date removalTime
-
byteArrayField
protected ByteArrayField byteArrayField
-
typedValueField
protected TypedValueField typedValueField
-
-
Constructor Detail
-
HistoricVariableInstanceEntity
public HistoricVariableInstanceEntity()
-
HistoricVariableInstanceEntity
public HistoricVariableInstanceEntity(HistoricVariableUpdateEventEntity historyEvent)
-
-
Method Detail
-
updateFromEvent
public void updateFromEvent(HistoricVariableUpdateEventEntity historyEvent)
-
delete
public void delete()
-
getPersistentState
public java.lang.Object getPersistentState()
Description copied from interface:DbEntity
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 interfaceDbEntity
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNext
in interfaceHasDbRevision
-
getValue
public java.lang.Object getValue()
Description copied from interface:HistoricVariableInstance
Returns the value of this variable instance.- Specified by:
getValue
in interfaceHistoricVariableInstance
-
getTypedValue
public TypedValue getTypedValue()
Description copied from interface:HistoricVariableInstance
Returns theTypedValue
of this variable instance.- Specified by:
getTypedValue
in interfaceHistoricVariableInstance
-
getTypedValue
public TypedValue getTypedValue(boolean deserializeValue)
-
getSerializer
public TypedValueSerializer<?> getSerializer()
-
getByteArrayValueId
public java.lang.String getByteArrayValueId()
-
getByteArrayId
public java.lang.String getByteArrayId()
-
setByteArrayId
public void setByteArrayId(java.lang.String byteArrayId)
-
getByteArrayValue
public byte[] getByteArrayValue()
- Specified by:
getByteArrayValue
in interfaceValueFields
-
setByteArrayValue
public void setByteArrayValue(byte[] bytes)
- Specified by:
setByteArrayValue
in interfaceValueFields
-
postLoad
public void postLoad()
- Specified by:
postLoad
in interfaceDbEntityLifecycleAware
-
getSerializerName
public java.lang.String getSerializerName()
-
setSerializerName
public void setSerializerName(java.lang.String serializerName)
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:HistoricVariableInstance
Returns the name of the type of this variable instance- Specified by:
getTypeName
in interfaceHistoricVariableInstance
- Returns:
- the type name of the variable
-
getVariableTypeName
public java.lang.String getVariableTypeName()
Description copied from interface:HistoricVariableInstance
Returns the name of the type of this variable instance
Deprecated since 7.2: use
HistoricVariableInstance.getTypeName()
instead.- Specified by:
getVariableTypeName
in interfaceHistoricVariableInstance
-
getVariableName
public java.lang.String getVariableName()
Description copied from interface:HistoricVariableInstance
Returns the name of this variable instance.Deprecated since 7.2: use
HistoricVariableInstance.getName()
instead.- Specified by:
getVariableName
in interfaceHistoricVariableInstance
-
getRevision
public int getRevision()
- Specified by:
getRevision
in interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevision
in interfaceHasDbRevision
-
getName
public java.lang.String getName()
Description copied from interface:HistoricVariableInstance
Returns the name of this variable instance.- Specified by:
getName
in interfaceHistoricVariableInstance
- Specified by:
getName
in interfaceNameable
-
setName
public void setName(java.lang.String name)
-
getLongValue
public java.lang.Long getLongValue()
- Specified by:
getLongValue
in interfaceValueFields
-
setLongValue
public void setLongValue(java.lang.Long longValue)
- Specified by:
setLongValue
in interfaceValueFields
-
getDoubleValue
public java.lang.Double getDoubleValue()
- Specified by:
getDoubleValue
in interfaceValueFields
-
setDoubleValue
public void setDoubleValue(java.lang.Double doubleValue)
- Specified by:
setDoubleValue
in interfaceValueFields
-
getTextValue
public java.lang.String getTextValue()
- Specified by:
getTextValue
in interfaceValueFields
-
setTextValue
public void setTextValue(java.lang.String textValue)
- Specified by:
setTextValue
in interfaceValueFields
-
getTextValue2
public java.lang.String getTextValue2()
- Specified by:
getTextValue2
in interfaceValueFields
-
setTextValue2
public void setTextValue2(java.lang.String textValue2)
- Specified by:
setTextValue2
in interfaceValueFields
-
setByteArrayValue
public void setByteArrayValue(ByteArrayEntity byteArrayValue)
-
getId
public java.lang.String getId()
- Specified by:
getId
in interfaceDbEntity
- Specified by:
getId
in interfaceHistoricVariableInstance
- Returns:
- the Id of this variable instance
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
Description copied from interface:HistoricVariableInstance
The process definition key reference.- Specified by:
getProcessDefinitionKey
in interfaceHistoricVariableInstance
-
setProcessDefinitionKey
public void setProcessDefinitionKey(java.lang.String processDefinitionKey)
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
Description copied from interface:HistoricVariableInstance
The process definition reference.- Specified by:
getProcessDefinitionId
in interfaceHistoricVariableInstance
-
setProcessDefinitionId
public void setProcessDefinitionId(java.lang.String processDefinitionId)
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
Description copied from interface:HistoricVariableInstance
The process instance reference.- Specified by:
getProcessInstanceId
in interfaceHistoricVariableInstance
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
-
getTaskId
public java.lang.String getTaskId()
Description copied from interface:HistoricVariableInstance
Return the corresponding task id.- Specified by:
getTaskId
in interfaceHistoricVariableInstance
-
setTaskId
public void setTaskId(java.lang.String taskId)
-
getExecutionId
public java.lang.String getExecutionId()
Description copied from interface:HistoricVariableInstance
Return the corresponding execution id.- Specified by:
getExecutionId
in interfaceHistoricVariableInstance
-
setExecutionId
public void setExecutionId(java.lang.String executionId)
-
getActivtyInstanceId
@Deprecated public java.lang.String getActivtyInstanceId()
Deprecated.Description copied from interface:HistoricVariableInstance
Returns the corresponding activity instance id.- Specified by:
getActivtyInstanceId
in interfaceHistoricVariableInstance
-
getActivityInstanceId
public java.lang.String getActivityInstanceId()
Description copied from interface:HistoricVariableInstance
Returns the corresponding activity instance id.- Specified by:
getActivityInstanceId
in interfaceHistoricVariableInstance
-
setActivityInstanceId
public void setActivityInstanceId(java.lang.String activityInstanceId)
-
getCaseDefinitionKey
public java.lang.String getCaseDefinitionKey()
Description copied from interface:HistoricVariableInstance
The case definition key reference.- Specified by:
getCaseDefinitionKey
in interfaceHistoricVariableInstance
-
setCaseDefinitionKey
public void setCaseDefinitionKey(java.lang.String caseDefinitionKey)
-
getCaseDefinitionId
public java.lang.String getCaseDefinitionId()
Description copied from interface:HistoricVariableInstance
The case definition reference.- Specified by:
getCaseDefinitionId
in interfaceHistoricVariableInstance
-
setCaseDefinitionId
public void setCaseDefinitionId(java.lang.String caseDefinitionId)
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
Description copied from interface:HistoricVariableInstance
The case instance reference.- Specified by:
getCaseInstanceId
in interfaceHistoricVariableInstance
-
setCaseInstanceId
public void setCaseInstanceId(java.lang.String caseInstanceId)
-
getCaseExecutionId
public java.lang.String getCaseExecutionId()
Description copied from interface:HistoricVariableInstance
Return the corresponding case execution id.- Specified by:
getCaseExecutionId
in interfaceHistoricVariableInstance
-
setCaseExecutionId
public void setCaseExecutionId(java.lang.String caseExecutionId)
-
getErrorMessage
public java.lang.String getErrorMessage()
Description copied from interface:HistoricVariableInstance
If the variable value could not be loaded, this returns the error message.- Specified by:
getErrorMessage
in interfaceHistoricVariableInstance
- Returns:
- an error message indicating why the variable value could not be loaded.
-
getTenantId
public java.lang.String getTenantId()
Description copied from interface:HistoricVariableInstance
The id of the tenant this variable belongs to. Can benull
if the variable belongs to no single tenant.- Specified by:
getTenantId
in interfaceHistoricVariableInstance
-
setTenantId
public void setTenantId(java.lang.String tenantId)
-
getState
public java.lang.String getState()
Description copied from interface:HistoricVariableInstance
The current state of the variable. Can be 'CREATED' or 'DELETED'- Specified by:
getState
in interfaceHistoricVariableInstance
-
setState
public void setState(java.lang.String state)
-
getCreateTime
public java.util.Date getCreateTime()
Description copied from interface:HistoricVariableInstance
The time when the variable was created.- Specified by:
getCreateTime
in interfaceHistoricVariableInstance
-
setCreateTime
public void setCreateTime(java.util.Date createTime)
-
getRootProcessInstanceId
public java.lang.String getRootProcessInstanceId()
Description copied from interface:HistoricVariableInstance
The root process instance reference.- Specified by:
getRootProcessInstanceId
in interfaceHistoricVariableInstance
-
setRootProcessInstanceId
public void setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
-
getRemovalTime
public java.util.Date getRemovalTime()
Description copied from interface:HistoricVariableInstance
The time when the historic variable instance will be removed.- Specified by:
getRemovalTime
in interfaceHistoricVariableInstance
-
setRemovalTime
public void setRemovalTime(java.util.Date removalTime)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-