Class VariableInstanceEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
org.flowable.variable.service.impl.persistence.entity.AbstractVariableServiceEntity
org.flowable.variable.service.impl.persistence.entity.VariableInstanceEntityImpl
- All Implemented Interfaces:
Serializable
,HasRevision
,Entity
,VariableInstance
,ValueFields
,VariableInstanceEntity
public class VariableInstanceEntityImpl
extends AbstractVariableServiceEntity
implements VariableInstanceEntity, ValueFields, Serializable
- Author:
- Tom Baeyens, Marcus Klimstra (CGI), Joram Barrez
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteArrayRef
protected Object
protected boolean
protected Double
protected String
protected boolean
protected Long
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected VariableType
protected String
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
byte[]
getBytes()
protected String
getName()
Returns a representation of the object, as would be stored in the database.getType()
getValue()
void
setBytes
(byte[] bytes) Sets the byte array value.void
setCachedValue
(Object cachedValue) void
setDoubleValue
(Double doubleValue) Sets the double value.void
setExecutionId
(String executionId) void
setLongValue
(Long longValue) Sets the long value.void
setMetaInfo
(String metaInfo) void
void
setProcessDefinitionId
(String processDefinitionId) void
setProcessInstanceId
(String processInstanceId) void
setScopeDefinitionId
(String scopeDefinitionId) void
setScopeId
(String scopeId) void
setScopeType
(String scopeType) void
setSubScopeId
(String subScopeId) void
void
setTextValue
(String textValue) Sets the first text value.void
setTextValue2
(String textValue2) Sets second text value.void
setType
(VariableType type) void
setTypeName
(String typeName) void
toString()
Methods inherited from class org.flowable.variable.service.impl.persistence.entity.AbstractVariableServiceEntity
getIdPrefix
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
Methods inherited from interface org.flowable.variable.api.persistence.entity.VariableInstance
getId, setId
Methods inherited from interface org.flowable.variable.service.impl.persistence.entity.VariableInstanceEntity
isReadOnly
-
Field Details
-
name
-
type
-
typeName
-
executionId
-
processInstanceId
-
processDefinitionId
-
taskId
-
scopeId
-
subScopeId
-
scopeType
-
scopeDefinitionId
-
longValue
-
doubleValue
-
textValue
-
textValue2
-
byteArrayRef
-
metaInfo
-
cachedValue
-
forcedUpdate
protected boolean forcedUpdate -
deleted
protected boolean deleted
-
-
Constructor Details
-
VariableInstanceEntityImpl
public VariableInstanceEntityImpl()
-
-
Method Details
-
getPersistentState
Description copied from interface:Entity
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 interfaceEntity
-
forceUpdate
public void forceUpdate()- Specified by:
forceUpdate
in interfaceVariableInstanceEntity
-
setExecutionId
- Specified by:
setExecutionId
in interfaceVariableInstance
-
setProcessInstanceId
- Specified by:
setProcessInstanceId
in interfaceVariableInstance
-
setProcessDefinitionId
- Specified by:
setProcessDefinitionId
in interfaceVariableInstance
-
getBytes
public byte[] getBytes()- Specified by:
getBytes
in interfaceValueFields
- Returns:
- the byte array value, if any, or null.
-
setBytes
public void setBytes(byte[] bytes) Description copied from interface:ValueFields
Sets the byte array value. A value of null is allowed.- Specified by:
setBytes
in interfaceValueFields
-
getByteArrayRef
- Specified by:
getByteArrayRef
in interfaceVariableInstanceEntity
-
ensureByteArrayRefInitialized
protected void ensureByteArrayRefInitialized() -
getValue
- Specified by:
getValue
in interfaceVariableInstance
-
setValue
- Specified by:
setValue
in interfaceVariableInstance
-
setName
- Specified by:
setName
in interfaceVariableInstance
-
getName
- Specified by:
getName
in interfaceValueFields
- Returns:
- the name of the variable
-
getTypeName
- Specified by:
getTypeName
in interfaceVariableInstance
-
setTypeName
- Specified by:
setTypeName
in interfaceVariableInstance
-
getType
- Specified by:
getType
in interfaceVariableInstanceEntity
-
setType
- Specified by:
setType
in interfaceVariableInstanceEntity
-
getProcessInstanceId
- Specified by:
getProcessInstanceId
in interfaceValueFields
- Returns:
- the process instance id of the variable
-
getProcessDefinitionId
- Specified by:
getProcessDefinitionId
in interfaceVariableInstance
-
getTaskId
- Specified by:
getTaskId
in interfaceValueFields
- Returns:
- the task id of the variable
-
setTaskId
- Specified by:
setTaskId
in interfaceVariableInstance
-
getExecutionId
- Specified by:
getExecutionId
in interfaceValueFields
- Returns:
- the execution id of the variable
-
getScopeId
- Specified by:
getScopeId
in interfaceValueFields
- Returns:
- the scope id of the variable
-
setScopeId
- Specified by:
setScopeId
in interfaceVariableInstance
-
getSubScopeId
- Specified by:
getSubScopeId
in interfaceValueFields
- Returns:
- the sub scope id of the variable
-
setSubScopeId
- Specified by:
setSubScopeId
in interfaceVariableInstance
-
getScopeType
- Specified by:
getScopeType
in interfaceValueFields
- Returns:
- the scope type of the variable
-
setScopeType
- Specified by:
setScopeType
in interfaceVariableInstance
-
setScopeDefinitionId
- Specified by:
setScopeDefinitionId
in interfaceVariableInstance
-
getScopeDefinitionId
- Specified by:
getScopeDefinitionId
in interfaceVariableInstance
-
getLongValue
- Specified by:
getLongValue
in interfaceValueFields
- Returns:
- the long value, if any, or null.
-
setLongValue
Description copied from interface:ValueFields
Sets the long value. A value of null is allowed.- Specified by:
setLongValue
in interfaceValueFields
-
getDoubleValue
- Specified by:
getDoubleValue
in interfaceValueFields
- Returns:
- the double value, if any, or null.
-
setDoubleValue
Description copied from interface:ValueFields
Sets the double value. A value of null is allowed.- Specified by:
setDoubleValue
in interfaceValueFields
-
getTextValue
- Specified by:
getTextValue
in interfaceValueFields
- Returns:
- the first text value, if any, or null.
-
setTextValue
Description copied from interface:ValueFields
Sets the first text value. A value of null is allowed.- Specified by:
setTextValue
in interfaceValueFields
-
getTextValue2
- Specified by:
getTextValue2
in interfaceValueFields
- Returns:
- the second text value, if any, or null.
-
setTextValue2
Description copied from interface:ValueFields
Sets second text value. A value of null is allowed.- Specified by:
setTextValue2
in interfaceValueFields
-
getMetaInfo
- Specified by:
getMetaInfo
in interfaceVariableInstance
-
setMetaInfo
- Specified by:
setMetaInfo
in interfaceVariableInstance
-
getCachedValue
- Specified by:
getCachedValue
in interfaceValueFields
-
setCachedValue
- Specified by:
setCachedValue
in interfaceValueFields
-
getEngineType
-
toString
-