public class VariableInstanceEntity extends Object implements VariableInstance, ValueFields, PersistentObject, HasRevision, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
activityInstanceId |
protected ByteArrayEntity |
byteArrayValue |
protected String |
byteArrayValueId |
protected Object |
cachedValue |
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 |
| Constructor and Description |
|---|
VariableInstanceEntity() |
| Modifier and Type | Method and Description |
|---|---|
static VariableInstanceEntity |
create(String name,
VariableType type,
Object value) |
static VariableInstanceEntity |
createAndInsert(String name,
VariableType type,
Object value) |
void |
delete() |
protected void |
deleteByteArrayValue() |
String |
getActivityInstanceId()
Returns the corresponding activity instance id.
|
ByteArrayEntity |
getByteArrayValue() |
String |
getByteArrayValueId() |
Object |
getCachedValue() |
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() |
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 |
Object |
getValue()
Returns the value of
this variable instance. |
String |
getVariableScope() |
void |
setActivityInstanceId(String acitivtyInstanceId) |
void |
setByteArrayValue(byte[] bytes) |
void |
setByteArrayValueId(String byteArrayValueId) |
void |
setCachedValue(Object cachedValue) |
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 |
setValue(Object value) |
String |
toString() |
protected String id
protected int revision
protected String name
protected String processInstanceId
protected String executionId
protected String taskId
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
public static VariableInstanceEntity createAndInsert(String name, VariableType type, Object value)
public static VariableInstanceEntity create(String name, VariableType type, Object value)
public void setExecution(ExecutionEntity execution)
public void delete()
public Object getPersistentState()
PersistentObjectgetPersistentState in interface PersistentObjectpublic int getRevisionNext()
getRevisionNext in interface HasRevisionpublic void setProcessInstanceId(String processInstanceId)
public void setExecutionId(String executionId)
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 Object getValue()
VariableInstancethis variable instance.getValue in interface VariableInstancepublic void setValue(Object value)
public String getId()
getId in interface PersistentObjectgetId in interface VariableInstancepublic void setId(String id)
setId in interface PersistentObjectpublic String getTextValue()
getTextValue in interface ValueFieldspublic String getProcessInstanceId()
VariableInstancegetProcessInstanceId in interface VariableInstancepublic String getExecutionId()
VariableInstancegetExecutionId 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()
VariableInstancethis variable instance.getName in interface ValueFieldsgetName in interface VariableInstancepublic int getRevision()
getRevision in interface HasRevisionpublic void setRevision(int revision)
setRevision in interface HasRevisionpublic void setType(VariableType type)
public VariableType getType()
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()
VariableInstancegetTaskId in interface VariableInstancepublic void setTaskId(String taskId)
public String getActivityInstanceId()
VariableInstancegetActivityInstanceId in interface VariableInstancepublic void setActivityInstanceId(String acitivtyInstanceId)
public String getTypeName()
VariableInstancethis variable instancegetTypeName in interface VariableInstancepublic String getErrorMessage()
VariableInstancegetErrorMessage in interface VariableInstancepublic String getVariableScope()
Copyright © 2015. All rights reserved.