org.jbpm.pvm.internal.type
Class Variable

java.lang.Object
  extended by org.jbpm.pvm.internal.type.Variable
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BlobVariable, ClobVariable, DateVariable, DoubleVariable, HibernateLongVariable, HibernateStringVariable, LongVariable, NullVariable, StringVariable, TextVariable, 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  ExecutionImpl execution
           
protected  boolean isHistoryEnabled
           
protected  java.lang.String key
           
protected  TaskImpl task
           
protected  java.lang.String textValue
           
 
Constructor Summary
Variable()
           
 
Method Summary
 Converter getConverter()
           
 long getDbid()
           
 ExecutionImpl getExecution()
           
 java.lang.String getKey()
           
protected abstract  java.lang.Object getObject()
          is the value, stored by this variable instance.
 ExecutionImpl getProcessInstance()
           
 TaskImpl getTask()
           
 java.lang.String getTextValue()
           
 Type getType()
           
 java.lang.Object getValue(ScopeInstanceImpl scopeInstance)
           
 boolean isHistoryEnabled()
           
abstract  boolean isStorable(java.lang.Object value)
          is true if this variable-instance supports the given value, false otherwise.
 void setConverter(Converter converter)
           
 void setDbid(long dbid)
           
 void setExecution(ExecutionImpl execution)
           
 void setHistoryEnabled(boolean isHistoryEnabled)
           
 void setKey(java.lang.String key)
           
protected abstract  void setObject(java.lang.Object value)
          stores the value in this variable instance.
 void setTask(TaskImpl task)
           
 void setValue(java.lang.Object value, ScopeInstanceImpl scopeInstance)
           
 boolean supports(java.lang.Object value, ScopeInstanceImpl scopeInstance)
           
 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

key

protected java.lang.String key

converter

protected Converter converter

textValue

protected java.lang.String textValue

isHistoryEnabled

protected boolean isHistoryEnabled

execution

protected ExecutionImpl execution

task

protected TaskImpl task
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,
                        ScopeInstanceImpl scopeInstance)

setValue

public void setValue(java.lang.Object value,
                     ScopeInstanceImpl scopeInstance)

getValue

public java.lang.Object getValue(ScopeInstanceImpl scopeInstance)

toString

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

getType

public Type getType()

getProcessInstance

public ExecutionImpl getProcessInstance()

getKey

public java.lang.String getKey()

getDbid

public long getDbid()

getConverter

public Converter getConverter()

setConverter

public void setConverter(Converter converter)

setKey

public void setKey(java.lang.String key)

getTextValue

public java.lang.String getTextValue()

getExecution

public ExecutionImpl getExecution()

setExecution

public void setExecution(ExecutionImpl execution)

getTask

public TaskImpl getTask()

setTask

public void setTask(TaskImpl task)

isHistoryEnabled

public boolean isHistoryEnabled()

setHistoryEnabled

public void setHistoryEnabled(boolean isHistoryEnabled)

setDbid

public void setDbid(long dbid)


Copyright © 2010 JBoss Community. All Rights Reserved.