|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.pvm.impl.VariableMap
public class VariableMap
maintains a map of named objects. Internally, the objects are
wrapped and stored as Variable
-objects so that this
map can be persisted with hibernate in the database.
Field Summary | |
---|---|
protected long |
dbid
|
protected int |
dbversion
|
protected ExecutionImpl |
execution
|
protected ExecutionImpl |
processInstance
|
protected java.util.Map<java.lang.String,Variable> |
variables
|
Constructor Summary | |
---|---|
VariableMap()
|
|
VariableMap(ExecutionImpl execution)
|
Method Summary | |
---|---|
protected Variable |
createVariable(java.lang.String key,
java.lang.Object value)
|
java.lang.Object |
get(java.lang.String key)
retrieve an object from this scope |
java.util.Map<java.lang.String,java.lang.Object> |
getAll()
all the variables. |
Variable |
getVariable(java.lang.String key)
|
boolean |
has(java.lang.String key)
check for presence of a key in this scope |
boolean |
isEmpty()
checks if this scope is empty |
java.util.Set<java.lang.String> |
keys()
all the keys that are present in this scope |
boolean |
remove(java.lang.String key)
remove the entry for the given key from this scope |
protected boolean |
removeVariable(java.lang.String key)
|
void |
set(java.lang.String key,
java.lang.Object value)
set an object in this scope |
protected void |
setVariable(Variable variable)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long dbid
protected int dbversion
protected java.util.Map<java.lang.String,Variable> variables
protected ExecutionImpl execution
protected ExecutionImpl processInstance
Constructor Detail |
---|
public VariableMap()
public VariableMap(ExecutionImpl execution)
Method Detail |
---|
public boolean isEmpty()
VariableScope
isEmpty
in interface VariableScope
public boolean has(java.lang.String key)
VariableScope
has
in interface VariableScope
public java.util.Set<java.lang.String> keys()
VariableScope
keys
in interface VariableScope
public java.util.Map<java.lang.String,java.lang.Object> getAll()
getAll
in interface VariableScope
public java.lang.Object get(java.lang.String key)
VariableScope
get
in interface VariableScope
public boolean remove(java.lang.String key)
VariableScope
remove
in interface VariableScope
public void set(java.lang.String key, java.lang.Object value)
VariableScope
set
in interface VariableScope
protected Variable createVariable(java.lang.String key, java.lang.Object value)
public Variable getVariable(java.lang.String key)
protected boolean removeVariable(java.lang.String key)
protected void setVariable(Variable variable)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |