Class VariableInstanceEntityImpl
- java.lang.Object
-
- org.activiti.engine.impl.persistence.entity.AbstractEntity
-
- org.activiti.engine.impl.persistence.entity.VariableInstanceEntityImpl
-
- All Implemented Interfaces:
java.io.Serializable,BulkDeleteable,HasRevision,Entity,VariableInstance,VariableInstanceEntity,ValueFields
public class VariableInstanceEntityImpl extends AbstractEntity implements VariableInstanceEntity, ValueFields, BulkDeleteable, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteArrayRefbyteArrayRefprotected java.lang.ObjectcachedValueprotected booleandeletedprotected java.lang.DoubledoubleValueprotected java.lang.StringexecutionIdprotected booleanforcedUpdateprotected java.lang.LonglongValueprotected java.lang.Stringnameprotected java.lang.StringprocessInstanceIdprotected java.lang.StringtaskIdprotected java.lang.StringtextValueprotected java.lang.StringtextValue2protected VariableTypetypeprotected java.lang.StringtypeName-
Fields inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, revision
-
-
Constructor Summary
Constructors Constructor Description VariableInstanceEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureByteArrayRefInitialized()voidforceUpdate()ByteArrayRefgetByteArrayRef()byte[]getBytes()java.lang.ObjectgetCachedValue()java.lang.DoublegetDoubleValue()java.lang.StringgetExecutionId()java.lang.LonggetLongValue()java.lang.StringgetName()java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.java.lang.StringgetProcessInstanceId()java.lang.StringgetTaskId()java.lang.StringgetTextValue()java.lang.StringgetTextValue2()VariableTypegetType()java.lang.StringgetTypeName()java.lang.ObjectgetValue()voidsetBytes(byte[] bytes)Sets the byte array value.voidsetCachedValue(java.lang.Object cachedValue)voidsetDoubleValue(java.lang.Double doubleValue)Sets the double value.voidsetExecution(ExecutionEntity execution)voidsetExecutionId(java.lang.String executionId)voidsetLongValue(java.lang.Long longValue)Sets the long value.voidsetName(java.lang.String name)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetTaskId(java.lang.String taskId)voidsetTextValue(java.lang.String textValue)Sets the first text value.voidsetTextValue2(java.lang.String textValue2)Sets second text value.voidsetType(VariableType type)voidsetTypeName(java.lang.String typeName)voidsetValue(java.lang.Object value)java.lang.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, isInserted, isUpdated, setId, setInserted, setUpdated
-
Methods inherited from interface org.activiti.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Methods inherited from interface org.activiti.engine.impl.persistence.entity.VariableInstanceEntity
isDeleted, setDeleted
-
-
-
-
Field Detail
-
name
protected java.lang.String name
-
type
protected VariableType type
-
typeName
protected java.lang.String typeName
-
processInstanceId
protected java.lang.String processInstanceId
-
executionId
protected java.lang.String executionId
-
taskId
protected java.lang.String taskId
-
longValue
protected java.lang.Long longValue
-
doubleValue
protected java.lang.Double doubleValue
-
textValue
protected java.lang.String textValue
-
textValue2
protected java.lang.String textValue2
-
byteArrayRef
protected ByteArrayRef byteArrayRef
-
cachedValue
protected java.lang.Object cachedValue
-
forcedUpdate
protected boolean forcedUpdate
-
deleted
protected boolean deleted
-
-
Method Detail
-
getPersistentState
public java.lang.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
-
setExecution
public void setExecution(ExecutionEntity execution)
- Specified by:
setExecutionin interfaceVariableInstanceEntity
-
forceUpdate
public void forceUpdate()
- Specified by:
forceUpdatein interfaceVariableInstanceEntity
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
- Specified by:
setProcessInstanceIdin interfaceVariableInstance
-
setExecutionId
public void setExecutionId(java.lang.String executionId)
- Specified by:
setExecutionIdin interfaceVariableInstance
-
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
-
getByteArrayRef
public ByteArrayRef getByteArrayRef()
- Specified by:
getByteArrayRefin interfaceVariableInstanceEntity
-
ensureByteArrayRefInitialized
protected void ensureByteArrayRefInitialized()
-
getValue
public java.lang.Object getValue()
- Specified by:
getValuein interfaceVariableInstance
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValuein interfaceVariableInstance
-
setName
public void setName(java.lang.String name)
- Specified by:
setNamein interfaceVariableInstance
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceValueFields- Returns:
- the name of the variable
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeNamein interfaceVariableInstance
-
setTypeName
public void setTypeName(java.lang.String typeName)
- Specified by:
setTypeNamein interfaceVariableInstance
-
getType
public VariableType getType()
- Specified by:
getTypein interfaceVariableInstanceEntity
-
setType
public void setType(VariableType type)
- Specified by:
setTypein interfaceVariableInstanceEntity
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
- Specified by:
getProcessInstanceIdin interfaceValueFields- Specified by:
getProcessInstanceIdin interfaceVariableInstance- Returns:
- the process instance id of the variable
-
getTaskId
public java.lang.String getTaskId()
- Specified by:
getTaskIdin interfaceValueFields- Specified by:
getTaskIdin interfaceVariableInstance- Returns:
- the task id of the variable
-
setTaskId
public void setTaskId(java.lang.String taskId)
- Specified by:
setTaskIdin interfaceVariableInstance
-
getExecutionId
public java.lang.String getExecutionId()
- Specified by:
getExecutionIdin interfaceValueFields- Specified by:
getExecutionIdin interfaceVariableInstance- Returns:
- the execution id of the variable
-
getLongValue
public java.lang.Long getLongValue()
- Specified by:
getLongValuein interfaceValueFields- Returns:
- the long value, if any, or null.
-
setLongValue
public void setLongValue(java.lang.Long longValue)
Description copied from interface:ValueFieldsSets the long value. A value of null is allowed.- Specified by:
setLongValuein interfaceValueFields
-
getDoubleValue
public java.lang.Double getDoubleValue()
- Specified by:
getDoubleValuein interfaceValueFields- Returns:
- the double value, if any, or null.
-
setDoubleValue
public void setDoubleValue(java.lang.Double doubleValue)
Description copied from interface:ValueFieldsSets the double value. A value of null is allowed.- Specified by:
setDoubleValuein interfaceValueFields
-
getTextValue
public java.lang.String getTextValue()
- Specified by:
getTextValuein interfaceValueFields- Returns:
- the first text value, if any, or null.
-
setTextValue
public void setTextValue(java.lang.String textValue)
Description copied from interface:ValueFieldsSets the first text value. A value of null is allowed.- Specified by:
setTextValuein interfaceValueFields
-
getTextValue2
public java.lang.String getTextValue2()
- Specified by:
getTextValue2in interfaceValueFields- Returns:
- the second text value, if any, or null.
-
setTextValue2
public void setTextValue2(java.lang.String textValue2)
Description copied from interface:ValueFieldsSets second text value. A value of null is allowed.- Specified by:
setTextValue2in interfaceValueFields
-
getCachedValue
public java.lang.Object getCachedValue()
- Specified by:
getCachedValuein interfaceValueFields
-
setCachedValue
public void setCachedValue(java.lang.Object cachedValue)
- Specified by:
setCachedValuein interfaceValueFields
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-