org.jbpm.pvm.impl
Class VariableDefinitionImpl

java.lang.Object
  extended by org.jbpm.pvm.impl.VariableDefinitionImpl
All Implemented Interfaces:
java.io.Serializable, VariableDefinition

public class VariableDefinitionImpl
extends java.lang.Object
implements java.io.Serializable, VariableDefinition

See Also:
Serialized Form

Field Summary
protected  Converter converter
           
protected  long dbid
           
protected  int dbversion
           
protected  java.lang.String description
           
protected  ObjectReference<?> initialValue
           
protected  java.lang.String name
           
protected  java.lang.Class<?> variableClass
           
 
Constructor Summary
VariableDefinitionImpl()
           
 
Method Summary
 Converter getConverter()
          defines the conversion between the java object representation and and the storage value as part of the type declaration for this variable
 long getDbid()
          the meaningless database primary key
 java.lang.String getDescription()
          free text description of this variable
 java.lang.Object getInitialValue(Execution execution)
          generates the initial value for this variable declaration in the context of the given execution.
 ObjectReference<?> getInitialValueReference()
           
 java.lang.String getName()
          the name/key of the variable
 java.lang.Class<?> getVariableClass()
          defines the persistable variable type that is part of the type declaration for this variable
 void setConverter(Converter converter)
           
 void setDescription(java.lang.String description)
           
 void setInitialValue(Descriptor initialValue)
           
 void setName(java.lang.String name)
           
 void setVariableClass(java.lang.Class<?> variableClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbid

protected long dbid

dbversion

protected int dbversion

name

protected java.lang.String name

description

protected java.lang.String description

converter

protected Converter converter

variableClass

protected java.lang.Class<?> variableClass

initialValue

protected ObjectReference<?> initialValue
Constructor Detail

VariableDefinitionImpl

public VariableDefinitionImpl()
Method Detail

getConverter

public Converter getConverter()
Description copied from interface: VariableDefinition
defines the conversion between the java object representation and and the storage value as part of the type declaration for this variable

Specified by:
getConverter in interface VariableDefinition

getVariableClass

public java.lang.Class<?> getVariableClass()
Description copied from interface: VariableDefinition
defines the persistable variable type that is part of the type declaration for this variable

Specified by:
getVariableClass in interface VariableDefinition

getDbid

public long getDbid()
Description copied from interface: VariableDefinition
the meaningless database primary key

Specified by:
getDbid in interface VariableDefinition

getDescription

public java.lang.String getDescription()
Description copied from interface: VariableDefinition
free text description of this variable

Specified by:
getDescription in interface VariableDefinition

getInitialValue

public java.lang.Object getInitialValue(Execution execution)
Description copied from interface: VariableDefinition
generates the initial value for this variable declaration in the context of the given execution.

Specified by:
getInitialValue in interface VariableDefinition

getName

public java.lang.String getName()
Description copied from interface: VariableDefinition
the name/key of the variable

Specified by:
getName in interface VariableDefinition

getInitialValueReference

public ObjectReference<?> getInitialValueReference()

setInitialValue

public void setInitialValue(Descriptor initialValue)

setName

public void setName(java.lang.String name)

setDescription

public void setDescription(java.lang.String description)

setConverter

public void setConverter(Converter converter)

setVariableClass

public void setVariableClass(java.lang.Class<?> variableClass)