Class PrimitiveValueSerializer<T extends PrimitiveValue<?>>
java.lang.Object
org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<T>
org.camunda.bpm.engine.impl.variable.serializer.PrimitiveValueSerializer<T>
- All Implemented Interfaces:
TypedValueSerializer<T>
- Direct Known Subclasses:
BooleanValueSerializer
,ByteArrayValueSerializer
,DateValueSerializer
,DoubleValueSerializer
,IntegerValueSerializer
,LongValueSerlializer
,ShortValueSerializer
,StringValueSerializer
public abstract class PrimitiveValueSerializer<T extends PrimitiveValue<?>>
extends AbstractTypedValueSerializer<T>
- Author:
- 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 TypeMethodDescriptionprotected boolean
canWriteValue
(TypedValue typedValue) getName()
The name of this serializer.getType()
TheVariableType
supportedabstract T
readValue
(ValueFields valueFields, boolean asTransientValue) readValue
(ValueFields valueFields, boolean deserializeObjectValue, boolean asTransientValue) Retrieve aTypedValue
from the providedValueFields
.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
Methods inherited from interface org.camunda.bpm.engine.impl.variable.serializer.TypedValueSerializer
convertToTypedValue, writeValue
-
Constructor Details
-
PrimitiveValueSerializer
-
-
Method Details
-
getName
Description copied from interface:TypedValueSerializer
The name of this serializer. The name is used when persisting the ValueFields populated by this serializer.- Returns:
- the name of this serializer.
-
readValue
public T readValue(ValueFields valueFields, boolean deserializeObjectValue, boolean asTransientValue) Description copied from interface:TypedValueSerializer
Retrieve aTypedValue
from the providedValueFields
.- Parameters:
valueFields
- theValueFields
to retrieve the value fromdeserializeObjectValue
- indicates whether aSerializableValue
should be deserialized.- Returns:
- the
TypedValue
-
readValue
-
getType
Description copied from interface:TypedValueSerializer
TheVariableType
supported- Specified by:
getType
in interfaceTypedValueSerializer<T extends PrimitiveValue<?>>
- Overrides:
getType
in classAbstractTypedValueSerializer<T extends PrimitiveValue<?>>
- Returns:
- the VariableType supported
-
canWriteValue
- Specified by:
canWriteValue
in classAbstractTypedValueSerializer<T extends PrimitiveValue<?>>
-