|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity
public class VariableInstanceEntity
| Field Summary | |
|---|---|
protected String |
activityInstanceId
|
protected ByteArrayEntity |
byteArrayValue
|
protected String |
byteArrayValueId
|
protected Object |
cachedValue
|
protected String |
caseExecutionId
|
protected String |
caseInstanceId
|
protected String |
configuration
|
protected String |
dataFormatId
|
protected Double |
doubleValue
|
protected String |
errorMessage
|
protected String |
executionId
|
protected String |
id
|
protected Long |
longValue
|
protected String |
name
|
protected String |
processInstanceId
|
protected int |
revision
|
protected String |
taskId
|
protected String |
textValue
|
protected String |
textValue2
|
protected VariableType |
type
|
protected String |
typeName
|
| Constructor Summary | |
|---|---|
VariableInstanceEntity()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
static VariableInstanceEntity |
create(String name,
VariableType type,
Object value)
|
static VariableInstanceEntity |
createAndInsert(String name,
VariableType type,
Object value)
|
static VariableInstanceEntity |
createFromSerializedValue(String name,
VariableType type,
Object value,
Map<String,Object> configuration)
|
void |
delete()
|
protected void |
deleteByteArrayValue()
|
protected void |
ensureTypeInitialized()
|
String |
getActivityInstanceId()
Returns the corresponding activity instance id. |
ByteArrayEntity |
getByteArrayValue()
|
String |
getByteArrayValueId()
|
Object |
getCachedValue()
|
String |
getCaseExecutionId()
Returns the corresponding case execution id. |
String |
getCaseInstanceId()
Returns the corresponding case instance id. |
String |
getDataFormatId()
|
Double |
getDoubleValue()
|
String |
getErrorMessage()
If the variable value could not be loaded, this returns the error message. |
String |
getExecutionId()
Returns the corresponding execution id. |
String |
getId()
|
Long |
getLongValue()
|
String |
getName()
Returns the name of this variable instance. |
Object |
getPersistentState()
Returns a representation of the object, as would be stored in the database. |
String |
getProcessInstanceId()
Returns the corresponding process instance id. |
int |
getRevision()
|
int |
getRevisionNext()
|
SerializedVariableValue |
getSerializedValue()
Returns the value of this variable in its serialized form, represented by a SerializedVariableValue. |
String |
getTaskId()
Returns the corresponding task id. |
String |
getTextValue()
|
String |
getTextValue2()
|
VariableType |
getType()
|
String |
getTypeName()
Returns the name of the type of this variable instance;
corresponds to the types defined in ProcessEngineVariableType. |
Object |
getValue()
Returns the value of this variable instance. |
String |
getValueTypeName()
Returns the simple name of the class of the persisted variable |
String |
getVariableScope()
|
static void |
insert(VariableInstanceEntity variableInstance)
|
boolean |
isAbleToStore(Object value)
|
boolean |
isAbleToStoreSerializedValue(Object value,
Map<String,Object> configuration)
|
void |
setActivityInstanceId(String acitivtyInstanceId)
|
void |
setByteArrayValue(byte[] bytes)
|
void |
setByteArrayValueId(String byteArrayValueId)
|
void |
setCachedValue(Object cachedValue)
|
void |
setCaseExecutionId(String caseExecutionId)
|
void |
setCaseInstanceId(String caseInstanceId)
|
void |
setDataFormatId(String dataFormatId)
|
void |
setDoubleValue(Double doubleValue)
|
void |
setExecution(ExecutionEntity execution)
|
void |
setExecutionId(String executionId)
|
void |
setId(String id)
|
void |
setLongValue(Long longValue)
|
void |
setName(String name)
|
void |
setProcessInstanceId(String processInstanceId)
|
void |
setRevision(int revision)
|
void |
setTaskId(String taskId)
|
void |
setTextValue(String textValue)
|
void |
setTextValue2(String textValue2)
|
void |
setType(VariableType type)
|
void |
setTypeName(String type)
|
void |
setValue(Object value)
|
void |
setValueFromSerialized(Object value,
Map<String,Object> configuration)
|
boolean |
storesCustomObjects()
Returns whether this variable potentially stores a custom java object (i.e. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String id
protected int revision
protected String name
protected String processInstanceId
protected String executionId
protected String taskId
protected String caseInstanceId
protected String caseExecutionId
protected String activityInstanceId
protected Long longValue
protected Double doubleValue
protected String textValue
protected String textValue2
protected ByteArrayEntity byteArrayValue
protected String byteArrayValueId
protected Object cachedValue
protected VariableType type
protected String errorMessage
protected String dataFormatId
protected String configuration
protected String typeName
| Constructor Detail |
|---|
public VariableInstanceEntity()
| Method Detail |
|---|
public static VariableInstanceEntity createAndInsert(String name,
VariableType type,
Object value)
public static void insert(VariableInstanceEntity variableInstance)
public static VariableInstanceEntity create(String name,
VariableType type,
Object value)
public static VariableInstanceEntity createFromSerializedValue(String name,
VariableType type,
Object value,
Map<String,Object> configuration)
public void setExecution(ExecutionEntity execution)
public void delete()
public Object getPersistentState()
DbEntity
getPersistentState in interface DbEntitypublic int getRevisionNext()
getRevisionNext in interface HasDbRevisionpublic void setProcessInstanceId(String processInstanceId)
public void setExecutionId(String executionId)
public void setCaseInstanceId(String caseInstanceId)
public void setCaseExecutionId(String caseExecutionId)
public String getByteArrayValueId()
getByteArrayValueId in interface ValueFieldspublic void setByteArrayValueId(String byteArrayValueId)
public ByteArrayEntity getByteArrayValue()
getByteArrayValue in interface ValueFieldspublic void setByteArrayValue(byte[] bytes)
setByteArrayValue in interface ValueFieldsprotected void deleteByteArrayValue()
public void clear()
public Object getValue()
CoreVariableInstancethis variable instance.
getValue in interface CoreVariableInstancepublic void setValue(Object value)
public void setValueFromSerialized(Object value,
Map<String,Object> configuration)
public boolean isAbleToStore(Object value)
public boolean isAbleToStoreSerializedValue(Object value,
Map<String,Object> configuration)
public String getId()
getId in interface DbEntitygetId in interface VariableInstancepublic void setId(String id)
setId in interface DbEntitypublic String getTextValue()
getTextValue in interface ValueFieldspublic String getProcessInstanceId()
VariableInstance
getProcessInstanceId in interface VariableInstancepublic String getExecutionId()
VariableInstance
getExecutionId in interface VariableInstancepublic String getCaseInstanceId()
VariableInstance
getCaseInstanceId in interface VariableInstancepublic String getCaseExecutionId()
VariableInstance
getCaseExecutionId in interface VariableInstancepublic Long getLongValue()
getLongValue in interface ValueFieldspublic void setLongValue(Long longValue)
setLongValue in interface ValueFieldspublic Double getDoubleValue()
getDoubleValue in interface ValueFieldspublic void setDoubleValue(Double doubleValue)
setDoubleValue in interface ValueFieldspublic void setName(String name)
public void setTextValue(String textValue)
setTextValue in interface ValueFieldspublic String getName()
CoreVariableInstancethis variable instance.
getName in interface CoreVariableInstancegetName in interface ValueFieldspublic int getRevision()
getRevision in interface HasDbRevisionpublic void setRevision(int revision)
setRevision in interface HasDbRevisionpublic void setType(VariableType type)
public void setTypeName(String type)
public VariableType getType()
protected void ensureTypeInitialized()
public Object getCachedValue()
getCachedValue in interface ValueFieldspublic void setCachedValue(Object cachedValue)
setCachedValue in interface ValueFieldspublic String getTextValue2()
getTextValue2 in interface ValueFieldspublic void setTextValue2(String textValue2)
setTextValue2 in interface ValueFieldspublic String getTaskId()
VariableInstance
getTaskId in interface VariableInstancepublic void setTaskId(String taskId)
public String getActivityInstanceId()
VariableInstance
getActivityInstanceId in interface VariableInstancepublic void setActivityInstanceId(String acitivtyInstanceId)
public String getTypeName()
PersistentVariableInstancethis variable instance;
corresponds to the types defined in ProcessEngineVariableType.
getTypeName in interface PersistentVariableInstancepublic String getErrorMessage()
PersistentVariableInstance
getErrorMessage in interface PersistentVariableInstancepublic String getDataFormatId()
getDataFormatId in interface ValueFieldspublic void setDataFormatId(String dataFormatId)
setDataFormatId in interface ValueFieldspublic String getVariableScope()
public SerializedVariableValue getSerializedValue()
PersistentVariableInstanceSerializedVariableValue.
getSerializedValue in interface PersistentVariableInstancepublic String getValueTypeName()
PersistentVariableInstance
getValueTypeName in interface PersistentVariableInstancepublic boolean storesCustomObjects()
PersistentVariableInstanceProcessEngineVariableType).
storesCustomObjects in interface PersistentVariableInstancepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||