Class DateValueSerializer
java.lang.Object
org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<T>
org.camunda.bpm.engine.impl.variable.serializer.PrimitiveValueSerializer<DateValue>
org.camunda.bpm.engine.impl.variable.serializer.DateValueSerializer
- All Implemented Interfaces:
TypedValueSerializer<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
-
Method Summary
Modifier and TypeMethodDescriptionconvertToTypedValue
(UntypedValueImpl untypedValue) Returns a typed value for the provided untyped value.readValue
(ValueFields valueFields, boolean asTransientValue) void
writeValue
(DateValue typedValue, ValueFields valueFields) Serialize aTypedValue
to theValueFields
.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
-
Constructor Details
-
DateValueSerializer
public DateValueSerializer()
-
-
Method Details
-
convertToTypedValue
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 thisTypedValueSerializer
(by invocation ofTypedValueSerializer.canHandle(TypedValue)
).- Parameters:
untypedValue
- the untyped value- Returns:
- the corresponding typed value
-
readValue
- Specified by:
readValue
in classPrimitiveValueSerializer<DateValue>
-
writeValue
Description copied from interface:TypedValueSerializer
Serialize aTypedValue
to theValueFields
.- Parameters:
typedValue
- theTypedValue
to persistvalueFields
- theValueFields
to which the value should be persisted
-