Class MetadataInstanceEntityImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.persistence.entity.AbstractEntity
-
- com.flowable.content.engine.impl.persistence.entity.AbstractContentEngineEntity
-
- com.flowable.content.engine.impl.persistence.entity.MetadataInstanceEntityImpl
-
- All Implemented Interfaces:
MetadataInstanceEntity
,MetadataInstance
,Serializable
,HasRevision
,Entity
,ValueFields
public class MetadataInstanceEntityImpl extends AbstractContentEngineEntity implements MetadataInstanceEntity, ValueFields, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteArrayRef
byteArrayRef
protected Object
cachedValue
protected String
contentItemId
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 MetadataInstanceEntityImpl()
-
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
getContentItemId()
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
setContentItemId(String contentItemId)
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.content.engine.impl.persistence.entity.AbstractContentEngineEntity
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, setInserted, setOriginalPersistentState, setUpdated
-
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Methods inherited from interface com.flowable.core.content.api.MetadataInstance
getId
-
Methods inherited from interface com.flowable.content.engine.impl.persistence.entity.MetadataInstanceEntity
setId
-
-
-
-
Field Detail
-
name
protected String name
-
type
protected VariableType type
-
typeName
protected String typeName
-
contentItemId
protected String contentItemId
-
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 interfaceMetadataInstanceEntity
-
getBytes
public byte[] getBytes()
- Specified by:
getBytes
in interfaceMetadataInstance
- Specified by:
getBytes
in interfaceValueFields
- Returns:
- the byte array value, if any, or null.
-
setBytes
public void setBytes(byte[] bytes)
- Specified by:
setBytes
in interfaceMetadataInstanceEntity
- Specified by:
setBytes
in interfaceValueFields
-
getByteArrayRef
public ByteArrayRef getByteArrayRef()
- Specified by:
getByteArrayRef
in interfaceMetadataInstanceEntity
-
ensureByteArrayRefInitialized
protected void ensureByteArrayRefInitialized()
-
getValue
public Object getValue()
- Specified by:
getValue
in interfaceMetadataInstance
-
setValue
public void setValue(Object value)
- Specified by:
setValue
in interfaceMetadataInstanceEntity
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceMetadataInstanceEntity
-
getName
public String getName()
- Specified by:
getName
in interfaceMetadataInstance
- Specified by:
getName
in interfaceValueFields
- Returns:
- the name of the variable
-
getContentItemId
public String getContentItemId()
- Specified by:
getContentItemId
in interfaceMetadataInstance
- Returns:
- the process instance id of the variable
-
setContentItemId
public void setContentItemId(String contentItemId)
- Specified by:
setContentItemId
in interfaceMetadataInstanceEntity
-
getTypeName
public String getTypeName()
- Specified by:
getTypeName
in interfaceMetadataInstance
-
setTypeName
public void setTypeName(String typeName)
- Specified by:
setTypeName
in interfaceMetadataInstanceEntity
-
getType
public VariableType getType()
- Specified by:
getType
in interfaceMetadataInstanceEntity
-
setType
public void setType(VariableType type)
- Specified by:
setType
in interfaceMetadataInstanceEntity
-
getLongValue
public Long getLongValue()
- Specified by:
getLongValue
in interfaceMetadataInstance
- Specified by:
getLongValue
in interfaceValueFields
- Returns:
- the long value, if any, or null.
-
setLongValue
public void setLongValue(Long longValue)
- Specified by:
setLongValue
in interfaceMetadataInstanceEntity
- Specified by:
setLongValue
in interfaceValueFields
-
getDoubleValue
public Double getDoubleValue()
- Specified by:
getDoubleValue
in interfaceMetadataInstance
- Specified by:
getDoubleValue
in interfaceValueFields
- Returns:
- the double value, if any, or null.
-
setDoubleValue
public void setDoubleValue(Double doubleValue)
- Specified by:
setDoubleValue
in interfaceMetadataInstanceEntity
- Specified by:
setDoubleValue
in interfaceValueFields
-
getTextValue
public String getTextValue()
- Specified by:
getTextValue
in interfaceMetadataInstance
- Specified by:
getTextValue
in interfaceValueFields
- Returns:
- the first text value, if any, or null.
-
setTextValue
public void setTextValue(String textValue)
- Specified by:
setTextValue
in interfaceMetadataInstanceEntity
- Specified by:
setTextValue
in interfaceValueFields
-
getTextValue2
public String getTextValue2()
- Specified by:
getTextValue2
in interfaceMetadataInstance
- Specified by:
getTextValue2
in interfaceValueFields
- Returns:
- the second text value, if any, or null.
-
setTextValue2
public void setTextValue2(String textValue2)
- Specified by:
setTextValue2
in interfaceMetadataInstanceEntity
- Specified by:
setTextValue2
in interfaceValueFields
-
getCachedValue
public Object getCachedValue()
- Specified by:
getCachedValue
in interfaceMetadataInstanceEntity
- Specified by:
getCachedValue
in interfaceValueFields
-
setCachedValue
public void setCachedValue(Object cachedValue)
- Specified by:
setCachedValue
in interfaceMetadataInstanceEntity
- 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
-
-