|
||||||||||
| 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.VariableScopeImpl
public abstract class VariableScopeImpl
| Field Summary | |
|---|---|
protected ELContext |
cachedElContext
|
protected String |
id
|
protected Map<String,VariableInstanceEntity> |
variableInstances
|
| Constructor Summary | |
|---|---|
VariableScopeImpl()
|
|
| Method Summary | |
|---|---|
protected void |
clearVariable(VariableInstanceEntity variableInstance,
Object newValue)
|
protected Set<String> |
collectVariableNames(Set<String> variableNames)
|
protected Map<String,Object> |
collectVariables(HashMap<String,Object> variables)
|
protected VariableInstanceEntity |
createVariableInstance(String variableName,
Object value,
VariableScope sourceActivityExecution)
|
protected void |
createVariableLocal(String variableName,
Object value)
|
protected void |
createVariableLocal(String variableName,
Object value,
VariableScope sourceActivityExecution)
only called when a new variable is created on this variable scope. |
protected void |
createVariablesLocal(Map<String,? extends Object> variables)
|
protected void |
deleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution)
|
void |
deleteVariablesInstanceForLeavingScope()
|
protected void |
ensureVariableInstancesInitialized()
|
protected void |
fireHistoricVariableInstanceCreate(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution)
|
protected void |
fireHistoricVariableInstanceDelete(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution)
|
protected void |
fireHistoricVariableInstanceUpdate(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution)
|
ELContext |
getCachedElContext()
|
String |
getId()
|
protected VariableType |
getNewVariableType(Object newValue)
|
protected abstract VariableScopeImpl |
getParentVariableScope()
|
protected VariableScope |
getSourceActivityVariableScope()
|
Object |
getVariable(String variableName)
|
Object |
getVariableLocal(String variableName)
|
Set<String> |
getVariableNames()
|
Set<String> |
getVariableNamesLocal()
|
Map<String,Object> |
getVariables()
|
Map<String,Object> |
getVariablesLocal()
|
boolean |
hasVariable(String variableName)
|
boolean |
hasVariableLocal(String variableName)
|
boolean |
hasVariables()
|
boolean |
hasVariablesLocal()
|
protected abstract void |
initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
|
protected boolean |
isAutoFireHistoryEvents()
|
protected abstract List<VariableInstanceEntity> |
loadVariableInstances()
|
void |
removeVariable(String variableName)
Removes the variable and creates a new HistoricVariableUpdateEntity. |
protected void |
removeVariable(String variableName,
VariableScope sourceActivityExecution)
|
void |
removeVariableLocal(String variableName)
Removes the local variable and creates a new HistoricVariableUpdateEntity. |
protected void |
removeVariableLocal(String variableName,
VariableScope sourceActivityExecution)
|
void |
removeVariables()
Removes the (local) variables and creates a new HistoricVariableUpdateEntity for each of them. |
void |
removeVariables(Collection<String> variableNames)
Removes the variables and creates a new HistoricVariableUpdateEntity for each of them. |
void |
removeVariablesLocal()
Removes the (local) variables and creates a new HistoricVariableUpdateEntity for each of them. |
void |
removeVariablesLocal(Collection<String> variableNames)
Removes the local variables and creates a new HistoricVariableUpdateEntity for each of them. |
void |
setCachedElContext(ELContext cachedElContext)
|
void |
setId(String id)
|
void |
setVariable(String variableName,
Object value)
|
protected void |
setVariable(String variableName,
Object value,
VariableScope sourceActivityExecution)
|
void |
setVariableLocal(String variableName,
Object value)
|
protected void |
setVariableLocal(String variableName,
Object value,
VariableScope sourceActivityExecution)
|
void |
setVariables(Map<String,? extends Object> variables)
|
void |
setVariablesLocal(Map<String,? extends Object> variables)
|
protected void |
updateVariableInstance(VariableInstanceEntity variableInstance,
Object value,
VariableScope sourceActivityExecution)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,VariableInstanceEntity> variableInstances
protected ELContext cachedElContext
protected String id
| Constructor Detail |
|---|
public VariableScopeImpl()
| Method Detail |
|---|
protected abstract List<VariableInstanceEntity> loadVariableInstances()
protected abstract VariableScopeImpl getParentVariableScope()
protected abstract void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
protected void ensureVariableInstancesInitialized()
public Map<String,Object> getVariables()
getVariables in interface VariableScopeprotected Map<String,Object> collectVariables(HashMap<String,Object> variables)
public Object getVariable(String variableName)
getVariable in interface VariableScopepublic Object getVariableLocal(String variableName)
getVariableLocal in interface VariableScopepublic boolean hasVariables()
hasVariables in interface VariableScopepublic boolean hasVariablesLocal()
hasVariablesLocal in interface VariableScopepublic boolean hasVariable(String variableName)
hasVariable in interface VariableScopepublic boolean hasVariableLocal(String variableName)
hasVariableLocal in interface VariableScopeprotected Set<String> collectVariableNames(Set<String> variableNames)
public Set<String> getVariableNames()
getVariableNames in interface VariableScopepublic Map<String,Object> getVariablesLocal()
getVariablesLocal in interface VariableScopepublic Set<String> getVariableNamesLocal()
getVariableNamesLocal in interface VariableScopeprotected void createVariablesLocal(Map<String,? extends Object> variables)
public void setVariables(Map<String,? extends Object> variables)
setVariables in interface VariableScopepublic void setVariablesLocal(Map<String,? extends Object> variables)
setVariablesLocal in interface VariableScopepublic void removeVariables()
VariableScopeHistoricVariableUpdateEntity for each of them.
removeVariables in interface VariableScopepublic void removeVariablesLocal()
VariableScopeHistoricVariableUpdateEntity for each of them.
removeVariablesLocal in interface VariableScopepublic void deleteVariablesInstanceForLeavingScope()
public void removeVariables(Collection<String> variableNames)
VariableScopeHistoricVariableUpdateEntity for each of them.
removeVariables in interface VariableScopepublic void removeVariablesLocal(Collection<String> variableNames)
VariableScopeHistoricVariableUpdateEntity for each of them.
removeVariablesLocal in interface VariableScope
public void setVariable(String variableName,
Object value)
setVariable in interface VariableScope
protected void setVariable(String variableName,
Object value,
VariableScope sourceActivityExecution)
public void setVariableLocal(String variableName,
Object value)
setVariableLocal in interface VariableScope
protected void setVariableLocal(String variableName,
Object value,
VariableScope sourceActivityExecution)
protected void clearVariable(VariableInstanceEntity variableInstance,
Object newValue)
protected VariableType getNewVariableType(Object newValue)
protected void createVariableLocal(String variableName,
Object value)
protected void createVariableLocal(String variableName,
Object value,
VariableScope sourceActivityExecution)
public void removeVariable(String variableName)
VariableScopeHistoricVariableUpdateEntity.
removeVariable in interface VariableScope
protected void removeVariable(String variableName,
VariableScope sourceActivityExecution)
public void removeVariableLocal(String variableName)
VariableScopeHistoricVariableUpdateEntity.
removeVariableLocal in interface VariableScopeprotected VariableScope getSourceActivityVariableScope()
protected void removeVariableLocal(String variableName,
VariableScope sourceActivityExecution)
protected void deleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution)
protected void updateVariableInstance(VariableInstanceEntity variableInstance,
Object value,
VariableScope sourceActivityExecution)
protected VariableInstanceEntity createVariableInstance(String variableName,
Object value,
VariableScope sourceActivityExecution)
protected void fireHistoricVariableInstanceDelete(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution)
protected void fireHistoricVariableInstanceCreate(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution)
protected void fireHistoricVariableInstanceUpdate(VariableInstanceEntity variableInstance,
VariableScope sourceActivityExecution)
protected boolean isAutoFireHistoryEvents()
public ELContext getCachedElContext()
public void setCachedElContext(ELContext cachedElContext)
public String getId()
public void setId(String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||