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.StringactivityInstanceIdprotected ByteArrayFieldbyteArrayFieldprotected java.lang.StringcaseDefinitionIdprotected java.lang.StringcaseDefinitionKeyprotected java.lang.StringcaseExecutionIdprotected java.lang.StringcaseInstanceIdprotected java.util.DatecreateTimeprotected java.lang.DoubledoubleValueprotected java.lang.StringexecutionIdprotected java.lang.Stringidprotected static EnginePersistenceLoggerLOGprotected java.lang.LonglongValueprotected java.lang.Stringnameprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessDefinitionKeyprotected java.lang.StringprocessInstanceIdprotected java.util.DateremovalTimeprotected intrevisionprotected java.lang.StringrootProcessInstanceIdprotected java.lang.Stringstateprotected java.lang.StringtaskIdprotected java.lang.StringtenantIdprotected java.lang.StringtextValueprotected java.lang.StringtextValue2protected TypedValueFieldtypedValueField-
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 voiddelete()java.lang.StringgetActivityInstanceId()Returns the corresponding activity instance id.java.lang.StringgetActivtyInstanceId()Deprecated.java.lang.StringgetByteArrayId()byte[]getByteArrayValue()java.lang.StringgetByteArrayValueId()java.lang.StringgetCaseDefinitionId()The case definition reference.java.lang.StringgetCaseDefinitionKey()The case definition key reference.java.lang.StringgetCaseExecutionId()Return the corresponding case execution id.java.lang.StringgetCaseInstanceId()The case instance reference.java.util.DategetCreateTime()The time when the variable was created.java.lang.DoublegetDoubleValue()java.lang.StringgetErrorMessage()If the variable value could not be loaded, this returns the error message.java.lang.StringgetExecutionId()Return the corresponding execution id.java.lang.StringgetId()java.lang.LonggetLongValue()java.lang.StringgetName()Returns the name of this variable instance.java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.java.lang.StringgetProcessDefinitionId()The process definition reference.java.lang.StringgetProcessDefinitionKey()The process definition key reference.java.lang.StringgetProcessInstanceId()The process instance reference.java.util.DategetRemovalTime()The time when the historic variable instance will be removed.intgetRevision()intgetRevisionNext()java.lang.StringgetRootProcessInstanceId()The root process instance reference.TypedValueSerializer<?>getSerializer()java.lang.StringgetSerializerName()java.lang.StringgetState()The current state of the variable.java.lang.StringgetTaskId()Return the corresponding task id.java.lang.StringgetTenantId()The id of the tenant this variable belongs to.java.lang.StringgetTextValue()java.lang.StringgetTextValue2()TypedValuegetTypedValue()Returns theTypedValueof this variable instance.TypedValuegetTypedValue(boolean deserializeValue)java.lang.StringgetTypeName()Returns the name of the type of this variable instancejava.lang.ObjectgetValue()Returns the value of this variable instance.java.lang.StringgetVariableName()Returns the name of this variable instance.java.lang.StringgetVariableTypeName()Returns the name of the type of this variable instancevoidpostLoad()voidsetActivityInstanceId(java.lang.String activityInstanceId)voidsetByteArrayId(java.lang.String byteArrayId)voidsetByteArrayValue(byte[] bytes)voidsetByteArrayValue(ByteArrayEntity byteArrayValue)voidsetCaseDefinitionId(java.lang.String caseDefinitionId)voidsetCaseDefinitionKey(java.lang.String caseDefinitionKey)voidsetCaseExecutionId(java.lang.String caseExecutionId)voidsetCaseInstanceId(java.lang.String caseInstanceId)voidsetCreateTime(java.util.Date createTime)voidsetDoubleValue(java.lang.Double doubleValue)voidsetExecutionId(java.lang.String executionId)voidsetId(java.lang.String id)voidsetLongValue(java.lang.Long longValue)voidsetName(java.lang.String name)voidsetProcessDefinitionId(java.lang.String processDefinitionId)voidsetProcessDefinitionKey(java.lang.String processDefinitionKey)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetRemovalTime(java.util.Date removalTime)voidsetRevision(int revision)voidsetRootProcessInstanceId(java.lang.String rootProcessInstanceId)voidsetSerializerName(java.lang.String serializerName)voidsetState(java.lang.String state)voidsetTaskId(java.lang.String taskId)voidsetTenantId(java.lang.String tenantId)voidsetTextValue(java.lang.String textValue)voidsetTextValue2(java.lang.String textValue2)java.lang.StringtoString()voidupdateFromEvent(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: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 interfaceDbEntity
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNextin interfaceHasDbRevision
-
getValue
public java.lang.Object getValue()
Description copied from interface:HistoricVariableInstanceReturns the value of this variable instance.- Specified by:
getValuein interfaceHistoricVariableInstance
-
getTypedValue
public TypedValue getTypedValue()
Description copied from interface:HistoricVariableInstanceReturns theTypedValueof this variable instance.- Specified by:
getTypedValuein 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:
getByteArrayValuein interfaceValueFields
-
setByteArrayValue
public void setByteArrayValue(byte[] bytes)
- Specified by:
setByteArrayValuein interfaceValueFields
-
postLoad
public void postLoad()
- Specified by:
postLoadin 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:HistoricVariableInstanceReturns the name of the type of this variable instance- Specified by:
getTypeNamein interfaceHistoricVariableInstance- Returns:
- the type name of the variable
-
getVariableTypeName
public java.lang.String getVariableTypeName()
Description copied from interface:HistoricVariableInstanceReturns the name of the type of this variable instance
Deprecated since 7.2: use
HistoricVariableInstance.getTypeName()instead.- Specified by:
getVariableTypeNamein interfaceHistoricVariableInstance
-
getVariableName
public java.lang.String getVariableName()
Description copied from interface:HistoricVariableInstanceReturns the name of this variable instance.Deprecated since 7.2: use
HistoricVariableInstance.getName()instead.- Specified by:
getVariableNamein interfaceHistoricVariableInstance
-
getRevision
public int getRevision()
- Specified by:
getRevisionin interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevisionin interfaceHasDbRevision
-
getName
public java.lang.String getName()
Description copied from interface:HistoricVariableInstanceReturns the name of this variable instance.- Specified by:
getNamein interfaceHistoricVariableInstance- Specified by:
getNamein interfaceNameable
-
setName
public void setName(java.lang.String name)
-
getLongValue
public java.lang.Long getLongValue()
- Specified by:
getLongValuein interfaceValueFields
-
setLongValue
public void setLongValue(java.lang.Long longValue)
- Specified by:
setLongValuein interfaceValueFields
-
getDoubleValue
public java.lang.Double getDoubleValue()
- Specified by:
getDoubleValuein interfaceValueFields
-
setDoubleValue
public void setDoubleValue(java.lang.Double doubleValue)
- Specified by:
setDoubleValuein interfaceValueFields
-
getTextValue
public java.lang.String getTextValue()
- Specified by:
getTextValuein interfaceValueFields
-
setTextValue
public void setTextValue(java.lang.String textValue)
- Specified by:
setTextValuein interfaceValueFields
-
getTextValue2
public java.lang.String getTextValue2()
- Specified by:
getTextValue2in interfaceValueFields
-
setTextValue2
public void setTextValue2(java.lang.String textValue2)
- Specified by:
setTextValue2in interfaceValueFields
-
setByteArrayValue
public void setByteArrayValue(ByteArrayEntity byteArrayValue)
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceDbEntity- Specified by:
getIdin interfaceHistoricVariableInstance- Returns:
- the Id of this variable instance
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
Description copied from interface:HistoricVariableInstanceThe process definition key reference.- Specified by:
getProcessDefinitionKeyin interfaceHistoricVariableInstance
-
setProcessDefinitionKey
public void setProcessDefinitionKey(java.lang.String processDefinitionKey)
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
Description copied from interface:HistoricVariableInstanceThe process definition reference.- Specified by:
getProcessDefinitionIdin interfaceHistoricVariableInstance
-
setProcessDefinitionId
public void setProcessDefinitionId(java.lang.String processDefinitionId)
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
Description copied from interface:HistoricVariableInstanceThe process instance reference.- Specified by:
getProcessInstanceIdin interfaceHistoricVariableInstance
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
-
getTaskId
public java.lang.String getTaskId()
Description copied from interface:HistoricVariableInstanceReturn the corresponding task id.- Specified by:
getTaskIdin interfaceHistoricVariableInstance
-
setTaskId
public void setTaskId(java.lang.String taskId)
-
getExecutionId
public java.lang.String getExecutionId()
Description copied from interface:HistoricVariableInstanceReturn the corresponding execution id.- Specified by:
getExecutionIdin interfaceHistoricVariableInstance
-
setExecutionId
public void setExecutionId(java.lang.String executionId)
-
getActivtyInstanceId
@Deprecated public java.lang.String getActivtyInstanceId()
Deprecated.Description copied from interface:HistoricVariableInstanceReturns the corresponding activity instance id.- Specified by:
getActivtyInstanceIdin interfaceHistoricVariableInstance
-
getActivityInstanceId
public java.lang.String getActivityInstanceId()
Description copied from interface:HistoricVariableInstanceReturns the corresponding activity instance id.- Specified by:
getActivityInstanceIdin interfaceHistoricVariableInstance
-
setActivityInstanceId
public void setActivityInstanceId(java.lang.String activityInstanceId)
-
getCaseDefinitionKey
public java.lang.String getCaseDefinitionKey()
Description copied from interface:HistoricVariableInstanceThe case definition key reference.- Specified by:
getCaseDefinitionKeyin interfaceHistoricVariableInstance
-
setCaseDefinitionKey
public void setCaseDefinitionKey(java.lang.String caseDefinitionKey)
-
getCaseDefinitionId
public java.lang.String getCaseDefinitionId()
Description copied from interface:HistoricVariableInstanceThe case definition reference.- Specified by:
getCaseDefinitionIdin interfaceHistoricVariableInstance
-
setCaseDefinitionId
public void setCaseDefinitionId(java.lang.String caseDefinitionId)
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
Description copied from interface:HistoricVariableInstanceThe case instance reference.- Specified by:
getCaseInstanceIdin interfaceHistoricVariableInstance
-
setCaseInstanceId
public void setCaseInstanceId(java.lang.String caseInstanceId)
-
getCaseExecutionId
public java.lang.String getCaseExecutionId()
Description copied from interface:HistoricVariableInstanceReturn the corresponding case execution id.- Specified by:
getCaseExecutionIdin interfaceHistoricVariableInstance
-
setCaseExecutionId
public void setCaseExecutionId(java.lang.String caseExecutionId)
-
getErrorMessage
public java.lang.String getErrorMessage()
Description copied from interface:HistoricVariableInstanceIf the variable value could not be loaded, this returns the error message.- Specified by:
getErrorMessagein interfaceHistoricVariableInstance- Returns:
- an error message indicating why the variable value could not be loaded.
-
getTenantId
public java.lang.String getTenantId()
Description copied from interface:HistoricVariableInstanceThe id of the tenant this variable belongs to. Can benullif the variable belongs to no single tenant.- Specified by:
getTenantIdin interfaceHistoricVariableInstance
-
setTenantId
public void setTenantId(java.lang.String tenantId)
-
getState
public java.lang.String getState()
Description copied from interface:HistoricVariableInstanceThe current state of the variable. Can be 'CREATED' or 'DELETED'- Specified by:
getStatein interfaceHistoricVariableInstance
-
setState
public void setState(java.lang.String state)
-
getCreateTime
public java.util.Date getCreateTime()
Description copied from interface:HistoricVariableInstanceThe time when the variable was created.- Specified by:
getCreateTimein interfaceHistoricVariableInstance
-
setCreateTime
public void setCreateTime(java.util.Date createTime)
-
getRootProcessInstanceId
public java.lang.String getRootProcessInstanceId()
Description copied from interface:HistoricVariableInstanceThe root process instance reference.- Specified by:
getRootProcessInstanceIdin interfaceHistoricVariableInstance
-
setRootProcessInstanceId
public void setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
-
getRemovalTime
public java.util.Date getRemovalTime()
Description copied from interface:HistoricVariableInstanceThe time when the historic variable instance will be removed.- Specified by:
getRemovalTimein interfaceHistoricVariableInstance
-
setRemovalTime
public void setRemovalTime(java.util.Date removalTime)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-