Class DataObjectVariableEntityImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.persistence.entity.AbstractEntity
-
- com.flowable.dataobject.engine.impl.persistence.entity.AbstractDataObjectEngineEntity
-
- com.flowable.dataobject.engine.impl.persistence.entity.DataObjectVariableEntityImpl
-
- All Implemented Interfaces:
DataObjectVariable
,DataObjectVariableEntity
,HasRevision
,Entity
,ValueFields
public class DataObjectVariableEntityImpl extends AbstractDataObjectEngineEntity implements DataObjectVariableEntity
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteArrayRef
byteArrayRef
protected Object
cachedValue
protected String
dataInstanceId
protected boolean
deleted
protected Double
doubleValue
protected boolean
forcedUpdate
protected Long
longValue
protected String
name
protected String
textValue
protected String
textValue2
protected VariableType
type
protected String
typeName
-
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
-
Constructor Summary
Constructors Constructor Description DataObjectVariableEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
ensureByteArrayRefInitialized()
void
forceUpdate()
ByteArrayRef
getByteArrayRef()
byte[]
getBytes()
Object
getCachedValue()
String
getDataInstanceId()
Double
getDoubleValue()
String
getExecutionId()
Long
getLongValue()
String
getName()
Object
getPersistentState()
String
getProcessInstanceId()
String
getScopeId()
String
getScopeType()
String
getSubScopeId()
String
getTaskId()
String
getTextValue()
String
getTextValue2()
VariableType
getType()
String
getTypeName()
Object
getValue()
void
setBytes(byte[] bytes)
void
setCachedValue(Object cachedValue)
void
setDataInstanceId(String dataInstanceId)
void
setDoubleValue(Double doubleValue)
void
setLongValue(Long longValue)
void
setName(String name)
void
setTextValue(String textValue)
void
setTextValue2(String textValue2)
void
setType(VariableType type)
void
setTypeName(String typeName)
void
setValue(Object value)
String
toString()
-
Methods inherited from class com.flowable.dataobject.engine.impl.persistence.entity.AbstractDataObjectEngineEntity
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 com.flowable.dataobject.api.runtime.DataObjectVariable
getId
-
Methods inherited from interface com.flowable.dataobject.engine.impl.persistence.entity.DataObjectVariableEntity
setId
-
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setInserted, setOriginalPersistentState, setUpdated
-
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
-
-
-
Field Detail
-
name
protected String name
-
type
protected VariableType type
-
typeName
protected String typeName
-
dataInstanceId
protected String dataInstanceId
-
longValue
protected Long longValue
-
doubleValue
protected Double doubleValue
-
textValue
protected String textValue
-
textValue2
protected String textValue2
-
byteArrayRef
protected ByteArrayRef byteArrayRef
-
cachedValue
protected Object cachedValue
-
forcedUpdate
protected boolean forcedUpdate
-
deleted
protected boolean deleted
-
-
Method Detail
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentState
in interfaceEntity
-
forceUpdate
public void forceUpdate()
- Specified by:
forceUpdate
in interfaceDataObjectVariableEntity
-
getBytes
public byte[] getBytes()
- Specified by:
getBytes
in interfaceDataObjectVariable
- Specified by:
getBytes
in interfaceValueFields
- Returns:
- the byte array value, if any, or null.
-
setBytes
public void setBytes(byte[] bytes)
- Specified by:
setBytes
in interfaceDataObjectVariableEntity
- Specified by:
setBytes
in interfaceValueFields
-
getByteArrayRef
public ByteArrayRef getByteArrayRef()
- Specified by:
getByteArrayRef
in interfaceDataObjectVariableEntity
-
ensureByteArrayRefInitialized
protected void ensureByteArrayRefInitialized()
-
getValue
public Object getValue()
- Specified by:
getValue
in interfaceDataObjectVariable
-
setValue
public void setValue(Object value)
- Specified by:
setValue
in interfaceDataObjectVariableEntity
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceDataObjectVariableEntity
-
getName
public String getName()
- Specified by:
getName
in interfaceDataObjectVariable
- Specified by:
getName
in interfaceValueFields
- Returns:
- the name of the variable
-
getDataInstanceId
public String getDataInstanceId()
- Specified by:
getDataInstanceId
in interfaceDataObjectVariable
- Returns:
- the data instance id of the variable
-
setDataInstanceId
public void setDataInstanceId(String dataInstanceId)
- Specified by:
setDataInstanceId
in interfaceDataObjectVariableEntity
-
getTypeName
public String getTypeName()
- Specified by:
getTypeName
in interfaceDataObjectVariable
-
setTypeName
public void setTypeName(String typeName)
- Specified by:
setTypeName
in interfaceDataObjectVariableEntity
-
getType
public VariableType getType()
- Specified by:
getType
in interfaceDataObjectVariableEntity
-
setType
public void setType(VariableType type)
- Specified by:
setType
in interfaceDataObjectVariableEntity
-
getLongValue
public Long getLongValue()
- Specified by:
getLongValue
in interfaceDataObjectVariable
- Specified by:
getLongValue
in interfaceValueFields
- Returns:
- the long value, if any, or null.
-
setLongValue
public void setLongValue(Long longValue)
- Specified by:
setLongValue
in interfaceDataObjectVariableEntity
- Specified by:
setLongValue
in interfaceValueFields
-
getDoubleValue
public Double getDoubleValue()
- Specified by:
getDoubleValue
in interfaceDataObjectVariable
- Specified by:
getDoubleValue
in interfaceValueFields
- Returns:
- the double value, if any, or null.
-
setDoubleValue
public void setDoubleValue(Double doubleValue)
- Specified by:
setDoubleValue
in interfaceDataObjectVariableEntity
- Specified by:
setDoubleValue
in interfaceValueFields
-
getTextValue
public String getTextValue()
- Specified by:
getTextValue
in interfaceDataObjectVariable
- Specified by:
getTextValue
in interfaceValueFields
- Returns:
- the first text value, if any, or null.
-
setTextValue
public void setTextValue(String textValue)
- Specified by:
setTextValue
in interfaceDataObjectVariableEntity
- Specified by:
setTextValue
in interfaceValueFields
-
getTextValue2
public String getTextValue2()
- Specified by:
getTextValue2
in interfaceDataObjectVariable
- Specified by:
getTextValue2
in interfaceValueFields
- Returns:
- the second text value, if any, or null.
-
setTextValue2
public void setTextValue2(String textValue2)
- Specified by:
setTextValue2
in interfaceDataObjectVariableEntity
- Specified by:
setTextValue2
in interfaceValueFields
-
getCachedValue
public Object getCachedValue()
- Specified by:
getCachedValue
in interfaceDataObjectVariableEntity
- Specified by:
getCachedValue
in interfaceValueFields
-
setCachedValue
public void setCachedValue(Object cachedValue)
- Specified by:
setCachedValue
in interfaceDataObjectVariableEntity
- Specified by:
setCachedValue
in interfaceValueFields
-
getProcessInstanceId
public String getProcessInstanceId()
- Specified by:
getProcessInstanceId
in interfaceValueFields
-
getExecutionId
public String getExecutionId()
- Specified by:
getExecutionId
in interfaceValueFields
-
getScopeId
public String getScopeId()
- Specified by:
getScopeId
in interfaceValueFields
-
getSubScopeId
public String getSubScopeId()
- Specified by:
getSubScopeId
in interfaceValueFields
-
getScopeType
public String getScopeType()
- Specified by:
getScopeType
in interfaceValueFields
-
getTaskId
public String getTaskId()
- Specified by:
getTaskId
in interfaceValueFields
-
-