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
Constructors Constructor Description PrimitiveValueSerializer(PrimitiveValueType variableType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
canWriteValue(TypedValue typedValue)
java.lang.String
getName()
The name of this serializer.PrimitiveValueType
getType()
TheVariableType
supportedabstract T
readValue(ValueFields valueFields, boolean asTransientValue)
T
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 Detail
-
PrimitiveValueSerializer
public PrimitiveValueSerializer(PrimitiveValueType variableType)
-
-
Method Detail
-
getName
public java.lang.String 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
public abstract T readValue(ValueFields valueFields, boolean asTransientValue)
-
getType
public PrimitiveValueType 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
protected boolean canWriteValue(TypedValue typedValue)
- Specified by:
canWriteValue
in classAbstractTypedValueSerializer<T extends PrimitiveValue<?>>
-
-