Class TransientVariableInstance
java.lang.Object
org.activiti.engine.impl.persistence.entity.TransientVariableInstance
- All Implemented Interfaces:
HasRevision,Entity,VariableInstance,ValueFields
A dummy implementation of
VariableInstance, used for storing transient variables
on a VariableScope, as the VariableScope works with instances of VariableInstance
and 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()getId()getName()Returns a representation of the object, as would be stored in the database.intintgetValue()booleanbooleanbooleanvoidsetBytes(byte[] bytes) Sets the byte array value.voidsetCachedValue(Object cachedValue) voidsetDeleted(boolean deleted) voidsetDoubleValue(Double doubleValue) Sets the double value.voidsetExecutionId(String executionId) voidvoidsetInserted(boolean inserted) voidsetLongValue(Long longValue) Sets the long value.voidvoidsetProcessInstanceId(String processInstanceId) voidsetRevision(int revision) voidvoidsetTextValue(String textValue) Sets the first text value.voidsetTextValue2(String textValue2) Sets second text value.voidsetTypeName(String typeName) voidsetUpdated(boolean updated) void
-
Field Details
-
TYPE_TRANSIENT
-
variableName
-
variableValue
-
-
Constructor Details
-
TransientVariableInstance
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceValueFields- Returns:
- the name of the variable
-
getTextValue
- Specified by:
getTextValuein interfaceValueFields- Returns:
- the first text value, if any, or null.
-
setTextValue
Description copied from interface:ValueFieldsSets the first text value. A value of null is allowed.- Specified by:
setTextValuein interfaceValueFields
-
getTextValue2
- Specified by:
getTextValue2in interfaceValueFields- Returns:
- the second text value, if any, or null.
-
setTextValue2
Description copied from interface:ValueFieldsSets second text value. A value of null is allowed.- Specified by:
setTextValue2in interfaceValueFields
-
getLongValue
- Specified by:
getLongValuein interfaceValueFields- Returns:
- the long value, if any, or null.
-
setLongValue
Description copied from interface:ValueFieldsSets the long value. A value of null is allowed.- Specified by:
setLongValuein interfaceValueFields
-
getDoubleValue
- Specified by:
getDoubleValuein interfaceValueFields- Returns:
- the double value, if any, or null.
-
setDoubleValue
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
- Specified by:
getCachedValuein interfaceValueFields
-
setCachedValue
- Specified by:
setCachedValuein interfaceValueFields
-
getId
-
setId
-
isInserted
public boolean isInserted()- Specified by:
isInsertedin interfaceEntity
-
setInserted
public void setInserted(boolean inserted) - Specified by:
setInsertedin interfaceEntity
-
isUpdated
public boolean isUpdated() -
setUpdated
public void setUpdated(boolean updated) - Specified by:
setUpdatedin interfaceEntity
-
isDeleted
public boolean isDeleted() -
setDeleted
public void setDeleted(boolean deleted) - Specified by:
setDeletedin interfaceEntity
-
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
- Specified by:
setNamein interfaceVariableInstance
-
setProcessInstanceId
- Specified by:
setProcessInstanceIdin interfaceVariableInstance
-
setExecutionId
- Specified by:
setExecutionIdin interfaceVariableInstance
-
getValue
- Specified by:
getValuein interfaceVariableInstance
-
setValue
- Specified by:
setValuein interfaceVariableInstance
-
getTypeName
- Specified by:
getTypeNamein interfaceVariableInstance
-
setTypeName
- Specified by:
setTypeNamein interfaceVariableInstance
-
getProcessInstanceId
- Specified by:
getProcessInstanceIdin interfaceValueFields- Specified by:
getProcessInstanceIdin interfaceVariableInstance- Returns:
- the process instance id of the variable
-
getTaskId
- Specified by:
getTaskIdin interfaceValueFields- Specified by:
getTaskIdin interfaceVariableInstance- Returns:
- the task id of the variable
-
setTaskId
- Specified by:
setTaskIdin interfaceVariableInstance
-
getExecutionId
- Specified by:
getExecutionIdin interfaceValueFields- Specified by:
getExecutionIdin interfaceVariableInstance- Returns:
- the execution id of the variable
-