org.camunda.bpm.engine.impl.variable.serializer
Class DateValueSerializer

java.lang.Object
  extended by org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<T>
      extended by org.camunda.bpm.engine.impl.variable.serializer.PrimitiveValueSerializer<org.camunda.bpm.engine.variable.value.DateValue>
          extended by org.camunda.bpm.engine.impl.variable.serializer.DateValueSerializer
All Implemented Interfaces:
TypedValueSerializer<org.camunda.bpm.engine.variable.value.DateValue>

public class DateValueSerializer
extends PrimitiveValueSerializer<org.camunda.bpm.engine.variable.value.DateValue>

Serializes Dates as long values

Author:
Tom Baeyens, Daniel Meyer

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer
BINARY_VALUE_TYPES, valueType
 
Constructor Summary
DateValueSerializer()
           
 
Method Summary
 org.camunda.bpm.engine.variable.value.DateValue convertToTypedValue(org.camunda.bpm.engine.variable.impl.value.UntypedValueImpl untypedValue)
          Returns a typed value for the provided untyped value.
 org.camunda.bpm.engine.variable.value.DateValue readValue(ValueFields valueFields)
           
 void writeValue(org.camunda.bpm.engine.variable.value.DateValue typedValue, ValueFields valueFields)
          Serialize a TypedValue to the ValueFields.
 
Methods inherited from class org.camunda.bpm.engine.impl.variable.serializer.PrimitiveValueSerializer
canWriteValue, getName, getType, readValue
 
Methods inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer
canHandle, getSerializationDataformat, isMutableValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateValueSerializer

public DateValueSerializer()
Method Detail

convertToTypedValue

public org.camunda.bpm.engine.variable.value.DateValue convertToTypedValue(org.camunda.bpm.engine.variable.impl.value.UntypedValueImpl untypedValue)
Description copied from interface: TypedValueSerializer
Returns a typed value for the provided untyped value. This is used on cases where the user sets an untyped value which is then detected to be handled by this TypedValueSerializer (by invocation of TypedValueSerializer.canHandle(TypedValue)).

Parameters:
untypedValue - the untyped value
Returns:
the corresponding typed value

readValue

public org.camunda.bpm.engine.variable.value.DateValue readValue(ValueFields valueFields)
Specified by:
readValue in class PrimitiveValueSerializer<org.camunda.bpm.engine.variable.value.DateValue>

writeValue

public void writeValue(org.camunda.bpm.engine.variable.value.DateValue typedValue,
                       ValueFields valueFields)
Description copied from interface: TypedValueSerializer
Serialize a TypedValue to the ValueFields.

Parameters:
typedValue - the TypedValue to persist
valueFields - the ValueFields to which the value should be persisted


Copyright © 2016 camunda services GmbH. All rights reserved.