public class JPAVariableSerializer extends AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
BINARY_VALUE_TYPES, valueType
Constructor and Description |
---|
JPAVariableSerializer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canWriteValue(org.camunda.bpm.engine.variable.value.TypedValue value) |
org.camunda.bpm.engine.variable.value.ObjectValue |
convertToTypedValue(org.camunda.bpm.engine.variable.impl.value.UntypedValueImpl untypedValue)
Returns a typed value for the provided untyped value.
|
String |
getName()
The name of this serializer.
|
protected boolean |
isDeserializedObjectValue(org.camunda.bpm.engine.variable.value.TypedValue value) |
org.camunda.bpm.engine.variable.value.ObjectValue |
readValue(ValueFields valueFields,
boolean deserializeObjectValue)
Retrieve a
TypedValue from the provided ValueFields . |
void |
writeValue(org.camunda.bpm.engine.variable.value.ObjectValue objectValue,
ValueFields valueFields)
Serialize a
TypedValue to the ValueFields . |
canHandle, getSerializationDataformat, getType, isMutableValue
public static final String NAME
public String getName()
TypedValueSerializer
protected boolean canWriteValue(org.camunda.bpm.engine.variable.value.TypedValue value)
canWriteValue
in class AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
protected boolean isDeserializedObjectValue(org.camunda.bpm.engine.variable.value.TypedValue value)
public org.camunda.bpm.engine.variable.value.ObjectValue convertToTypedValue(org.camunda.bpm.engine.variable.impl.value.UntypedValueImpl untypedValue)
TypedValueSerializer
TypedValueSerializer
(by invocation of TypedValueSerializer.canHandle(TypedValue)
).untypedValue
- the untyped valuepublic void writeValue(org.camunda.bpm.engine.variable.value.ObjectValue objectValue, ValueFields valueFields)
TypedValueSerializer
TypedValue
to the ValueFields
.objectValue
- the TypedValue
to persistvalueFields
- the ValueFields
to which the value should be persistedpublic org.camunda.bpm.engine.variable.value.ObjectValue readValue(ValueFields valueFields, boolean deserializeObjectValue)
TypedValueSerializer
TypedValue
from the provided ValueFields
.valueFields
- the ValueFields
to retrieve the value fromdeserializeObjectValue
- indicates whether a SerializableValue
should be deserialized.TypedValue
Copyright © 2017. All rights reserved.