org.camunda.bpm.engine.impl.variable
Interface VariableType

All Known Implementing Classes:
BooleanType, ByteArrayType, DateType, DoubleType, IntegerType, JPAEntityVariableType, LongType, NullType, PrimitiveVariableType, SerializableType, ShortType, SpinSerializationType, StringType

public interface VariableType

Author:
Tom Baeyens, roman.smirnov

Method Summary
 SerializedVariableValue getSerializedValue(ValueFields valueFields)
           
 String getTypeName()
          name of variable type (limited to 100 characters length)
 String getTypeNameForValue(ValueFields valueFields)
          Returns the type name (i.e.
 Object getValue(ValueFields valueFields)
           
 boolean isAbleToStore(Object value)
           
 boolean isAbleToStoreSerializedValue(Object value, Map<String,Object> configuration)
           
 boolean isCachable()
           
 void setValue(Object value, ValueFields valueFields)
           
 void setValueFromSerialized(Object serializedValue, Map<String,Object> configuration, ValueFields valueFields)
           
 boolean storesCustomObjects()
           
 

Method Detail

getTypeName

String getTypeName()
name of variable type (limited to 100 characters length)


getTypeNameForValue

String getTypeNameForValue(ValueFields valueFields)

Returns the type name (i.e. the simple class name) of the stored 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.


isCachable

boolean isCachable()

isAbleToStore

boolean isAbleToStore(Object value)

setValue

void setValue(Object value,
              ValueFields valueFields)

getValue

Object getValue(ValueFields valueFields)

getSerializedValue

SerializedVariableValue getSerializedValue(ValueFields valueFields)

setValueFromSerialized

void setValueFromSerialized(Object serializedValue,
                            Map<String,Object> configuration,
                            ValueFields valueFields)

isAbleToStoreSerializedValue

boolean isAbleToStoreSerializedValue(Object value,
                                     Map<String,Object> configuration)

storesCustomObjects

boolean storesCustomObjects()


Copyright © 2014 camunda services GmbH. All Rights Reserved.