org.jbpm.context.exe
Class VariableInstance
java.lang.Object
org.jbpm.context.exe.VariableInstance
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ByteArrayInstance, DateInstance, DoubleInstance, Ejb3Instance, HibernateLongInstance, HibernateStringInstance, JcrNodeInstance, LongInstance, NullInstance, StringInstance, UnpersistableInstance
public abstract class VariableInstance
- extends Object
- implements Serializable
base for classes that store variable values in the database.
- See Also:
- Serialized Form
name
protected String name
token
protected Token token
tokenVariableMap
protected TokenVariableMap tokenVariableMap
processInstance
protected ProcessInstance processInstance
converter
protected Converter converter
valueCache
protected Object valueCache
isValueCached
protected boolean isValueCached
VariableInstance
public VariableInstance()
create
public static VariableInstance create(Token token,
String name,
Object value)
createVariableInstance
public static VariableInstance createVariableInstance(Object value)
isStorable
public abstract boolean isStorable(Object value)
- is true if this variable-instance supports the given value, false otherwise.
getObject
protected abstract Object getObject()
- is the value, stored by this variable instance.
setObject
protected abstract void setObject(Object value)
- stores the value in this variable instance.
supports
public boolean supports(Object value)
setValue
public void setValue(Object value)
getValue
public Object getValue()
removeReferences
public void removeReferences()
toString
public String toString()
- Overrides:
toString in class Object
getName
public String getName()
getProcessInstance
public ProcessInstance getProcessInstance()
getToken
public Token getToken()
setTokenVariableMap
public void setTokenVariableMap(TokenVariableMap tokenVariableMap)
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.