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()
PersistentObject
getPersistentState
in interface PersistentObject
public int getRevisionNext()
getRevisionNext
in interface HasRevision
public void setProcessInstanceId(String processInstanceId)
public void setExecutionId(String executionId)
public String getByteArrayValueId()
getByteArrayValueId
in interface ValueFields
public void setByteArrayValueId(String byteArrayValueId)
public ByteArrayEntity getByteArrayValue()
getByteArrayValue
in interface ValueFields
public void setByteArrayValue(byte[] bytes)
setByteArrayValue
in interface ValueFields
protected void deleteByteArrayValue()
public Object getValue()
VariableInstance
this
variable instance.getValue
in interface VariableInstance
public void setValue(Object value)
public String getId()
getId
in interface PersistentObject
getId
in interface VariableInstance
public void setId(String id)
setId
in interface PersistentObject
public String getTextValue()
getTextValue
in interface ValueFields
public String getProcessInstanceId()
VariableInstance
getProcessInstanceId
in interface VariableInstance
public String getExecutionId()
VariableInstance
getExecutionId
in interface VariableInstance
public Long getLongValue()
getLongValue
in interface ValueFields
public void setLongValue(Long longValue)
setLongValue
in interface ValueFields
public Double getDoubleValue()
getDoubleValue
in interface ValueFields
public void setDoubleValue(Double doubleValue)
setDoubleValue
in interface ValueFields
public void setName(String name)
public void setTextValue(String textValue)
setTextValue
in interface ValueFields
public String getName()
VariableInstance
this
variable instance.getName
in interface ValueFields
getName
in interface VariableInstance
public int getRevision()
getRevision
in interface HasRevision
public void setRevision(int revision)
setRevision
in interface HasRevision
public void setType(VariableType type)
public VariableType getType()
public Object getCachedValue()
getCachedValue
in interface ValueFields
public void setCachedValue(Object cachedValue)
setCachedValue
in interface ValueFields
public String getTextValue2()
getTextValue2
in interface ValueFields
public void setTextValue2(String textValue2)
setTextValue2
in interface ValueFields
public String getTaskId()
VariableInstance
getTaskId
in interface VariableInstance
public void setTaskId(String taskId)
public String getActivityInstanceId()
VariableInstance
getActivityInstanceId
in interface VariableInstance
public void setActivityInstanceId(String acitivtyInstanceId)
public String getTypeName()
VariableInstance
this
variable instancegetTypeName
in interface VariableInstance
public String getErrorMessage()
VariableInstance
getErrorMessage
in interface VariableInstance
public String getVariableScope()
Copyright © 2015. All rights reserved.