org.camunda.bpm.engine.impl.variable
Class JPAEntityVariableType

java.lang.Object
  extended by org.camunda.bpm.engine.impl.variable.JPAEntityVariableType
All Implemented Interfaces:
VariableType

public class JPAEntityVariableType
extends Object
implements VariableType

Variable type capable of storing reference to JPA-entities. Only JPA-Entities which are configured by annotations are supported. Use of compound primary keys is not supported.

Author:
Frederik Heremans

Field Summary
static String TYPE_NAME
           
 
Constructor Summary
JPAEntityVariableType()
           
 
Method Summary
 Object getRawValue(ValueFields valueFields)
           
 String getTypeName()
          name of variable type (limited to 100 characters length)
 String getTypeNameForValue(Object value)
          Returns the type name (i.e.
 Object getValue(ValueFields valueFields)
           
 boolean isAbleToStore(Object value)
           
 boolean isCachable()
           
 void setValue(Object value, ValueFields valueFields)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final String TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

JPAEntityVariableType

public JPAEntityVariableType()
Method Detail

getTypeName

public String getTypeName()
Description copied from interface: VariableType
name of variable type (limited to 100 characters length)

Specified by:
getTypeName in interface VariableType

isCachable

public boolean isCachable()
Specified by:
isCachable in interface VariableType

isAbleToStore

public boolean isAbleToStore(Object value)
Specified by:
isAbleToStore in interface VariableType

setValue

public void setValue(Object value,
                     ValueFields valueFields)
Specified by:
setValue in interface VariableType

getValue

public Object getValue(ValueFields valueFields)
Specified by:
getValue in interface VariableType

getTypeNameForValue

public String getTypeNameForValue(Object value)
Description copied from interface: VariableType

Returns the type name (i.e. the simple class name) of the passed value.

Note:For a serializable value only the type name "Serializable" will currently be returned and not the simple class name of the passed value.

Specified by:
getTypeNameForValue in interface VariableType

getRawValue

public Object getRawValue(ValueFields valueFields)
Specified by:
getRawValue in interface VariableType


Copyright © 2014 camunda services GmbH. All Rights Reserved.