org.jbpm.pvm.type
Class Variable

java.lang.Object
  extended by org.jbpm.pvm.type.Variable
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BlobVariable, ClobVariable, DateVariable, DoubleVariable, HibernateLongVariable, HibernateStringVariable, LongVariable, NullVariable, StringVariable, UnpersistableVariable

public abstract class Variable
extends java.lang.Object
implements java.io.Serializable

is a jbpm-internal class that serves as a base class for classes that store variable values in the database.

See Also:
Serialized Form

Field Summary
protected  Converter converter
           
protected  long dbid
           
protected  int dbversion
           
protected  Execution execution
           
protected  java.lang.String name
           
protected  Execution processInstance
           
protected  VariableDefinition variableDefinition
           
 
Constructor Summary
Variable()
           
 
Method Summary
 Converter getConverter()
           
 Execution getExecution()
           
 java.lang.String getName()
           
protected abstract  java.lang.Object getObject()
          is the value, stored by this variable instance.
 Execution getProcessInstance()
           
 java.lang.Object getValue()
           
 VariableDefinition getVariableDefinition()
           
abstract  boolean isStorable(java.lang.Object value)
          is true if this variable-instance supports the given value, false otherwise.
 void setConverter(Converter converter)
           
 void setExecution(Execution execution)
           
 void setName(java.lang.String name)
           
protected abstract  void setObject(java.lang.Object value)
          stores the value in this variable instance.
 void setProcessInstance(Execution processInstance)
           
 void setValue(java.lang.Object value)
           
 void setVariableDefinition(VariableDefinition variableDefinition)
           
 boolean supports(java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dbid

protected long dbid

dbversion

protected int dbversion

name

protected java.lang.String name

converter

protected Converter converter

variableDefinition

protected VariableDefinition variableDefinition

execution

protected Execution execution

processInstance

protected Execution processInstance
Constructor Detail

Variable

public Variable()
Method Detail

isStorable

public abstract boolean isStorable(java.lang.Object value)
is true if this variable-instance supports the given value, false otherwise.


getObject

protected abstract java.lang.Object getObject()
is the value, stored by this variable instance.


setObject

protected abstract void setObject(java.lang.Object value)
stores the value in this variable instance.


supports

public boolean supports(java.lang.Object value)

setValue

public void setValue(java.lang.Object value)

getValue

public java.lang.Object getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()

getConverter

public Converter getConverter()

setConverter

public void setConverter(Converter converter)

getExecution

public Execution getExecution()

setExecution

public void setExecution(Execution execution)

setName

public void setName(java.lang.String name)

getVariableDefinition

public VariableDefinition getVariableDefinition()

setVariableDefinition

public void setVariableDefinition(VariableDefinition variableDefinition)

getProcessInstance

public Execution getProcessInstance()

setProcessInstance

public void setProcessInstance(Execution processInstance)