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

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

public class SerializableType
extends ByteArrayType

Author:
Tom Baeyens

Nested Class Summary
protected static class SerializableType.ClassloaderAwareObjectInputStream
           
 
Constructor Summary
SerializableType()
           
 
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)
           
static byte[] serialize(Object value, ValueFields valueFields)
           
 void setValue(Object value, ValueFields valueFields)
           
 void setValueFromSerialized(Object serializedValue, Map<String,Object> configuration, ValueFields valueFields)
           
 boolean storesCustomObjects()
           
 
Methods inherited from class org.camunda.bpm.engine.impl.variable.ByteArrayType
isCachable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableType

public SerializableType()
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
Overrides:
getTypeName in class ByteArrayType

getValue

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

setValue

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

serialize

public static byte[] serialize(Object value,
                               ValueFields valueFields)

isAbleToStore

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

getTypeNameForValue

public String getTypeNameForValue(ValueFields valueFields)
Description copied from interface: VariableType

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.

Specified by:
getTypeNameForValue in interface VariableType
Overrides:
getTypeNameForValue in class ByteArrayType

getSerializedValue

public SerializedVariableValue getSerializedValue(ValueFields valueFields)
Specified by:
getSerializedValue in interface VariableType
Overrides:
getSerializedValue in class PrimitiveVariableType

setValueFromSerialized

public void setValueFromSerialized(Object serializedValue,
                                   Map<String,Object> configuration,
                                   ValueFields valueFields)
Specified by:
setValueFromSerialized in interface VariableType
Overrides:
setValueFromSerialized in class PrimitiveVariableType

isAbleToStoreSerializedValue

public boolean isAbleToStoreSerializedValue(Object value,
                                            Map<String,Object> configuration)
Specified by:
isAbleToStoreSerializedValue in interface VariableType
Overrides:
isAbleToStoreSerializedValue in class PrimitiveVariableType

storesCustomObjects

public boolean storesCustomObjects()
Specified by:
storesCustomObjects in interface VariableType
Overrides:
storesCustomObjects in class PrimitiveVariableType


Copyright © 2014 camunda services GmbH. All Rights Reserved.