Class TransientVariableInstance
- java.lang.Object
-
- org.activiti.engine.impl.persistence.entity.TransientVariableInstance
-
- All Implemented Interfaces:
HasRevision,Entity,VariableInstance,ValueFields
public class TransientVariableInstance extends java.lang.Object implements VariableInstance
A dummy implementation ofVariableInstance, used for storing transient variables on aVariableScope, as theVariableScopeworks with instances ofVariableInstanceand not with raw key/values. Nothing more than a thin wrapper around a name and value. All the other methods are not implemented.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE_TRANSIENTprotected java.lang.StringvariableNameprotected java.lang.ObjectvariableValue
-
Constructor Summary
Constructors Constructor Description TransientVariableInstance(java.lang.String variableName, java.lang.Object variableValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()java.lang.ObjectgetCachedValue()java.lang.DoublegetDoubleValue()java.lang.StringgetExecutionId()java.lang.StringgetId()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()intgetRevision()intgetRevisionNext()java.lang.StringgetTaskId()java.lang.StringgetTextValue()java.lang.StringgetTextValue2()java.lang.StringgetTypeName()java.lang.ObjectgetValue()booleanisDeleted()booleanisInserted()booleanisUpdated()voidsetBytes(byte[] bytes)Sets the byte array value.voidsetCachedValue(java.lang.Object cachedValue)voidsetDeleted(boolean deleted)voidsetDoubleValue(java.lang.Double doubleValue)Sets the double value.voidsetExecutionId(java.lang.String executionId)voidsetId(java.lang.String id)voidsetInserted(boolean inserted)voidsetLongValue(java.lang.Long longValue)Sets the long value.voidsetName(java.lang.String name)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetRevision(int revision)voidsetTaskId(java.lang.String taskId)voidsetTextValue(java.lang.String textValue)Sets the first text value.voidsetTextValue2(java.lang.String textValue2)Sets second text value.voidsetTypeName(java.lang.String typeName)voidsetUpdated(boolean updated)voidsetValue(java.lang.Object value)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceValueFields- Returns:
- the name of the variable
-
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
-
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
-
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
-
getCachedValue
public java.lang.Object getCachedValue()
- Specified by:
getCachedValuein interfaceValueFields
-
setCachedValue
public void setCachedValue(java.lang.Object cachedValue)
- Specified by:
setCachedValuein interfaceValueFields
-
isInserted
public boolean isInserted()
- Specified by:
isInsertedin interfaceEntity
-
setInserted
public void setInserted(boolean inserted)
- Specified by:
setInsertedin interfaceEntity
-
setUpdated
public void setUpdated(boolean updated)
- Specified by:
setUpdatedin interfaceEntity
-
setDeleted
public void setDeleted(boolean deleted)
- Specified by:
setDeletedin interfaceEntity
-
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
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevisionin interfaceHasRevision
-
getRevision
public int getRevision()
- Specified by:
getRevisionin interfaceHasRevision
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNextin interfaceHasRevision
-
setName
public void setName(java.lang.String name)
- Specified by:
setNamein interfaceVariableInstance
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
- Specified by:
setProcessInstanceIdin interfaceVariableInstance
-
setExecutionId
public void setExecutionId(java.lang.String executionId)
- Specified by:
setExecutionIdin interfaceVariableInstance
-
getValue
public java.lang.Object getValue()
- Specified by:
getValuein interfaceVariableInstance
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValuein interfaceVariableInstance
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeNamein interfaceVariableInstance
-
setTypeName
public void setTypeName(java.lang.String typeName)
- Specified by:
setTypeNamein interfaceVariableInstance
-
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
-
-