org.camunda.bpm.engine.impl.variable.serializer.jpa
Class JPAVariableSerializer
java.lang.Object
org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
org.camunda.bpm.engine.impl.variable.serializer.jpa.JPAVariableSerializer
- All Implemented Interfaces:
- TypedValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
public class JPAVariableSerializer
- extends AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
Variable type capable of storing reference to JPA-entities. Only JPA-Entities which
are configured by annotations are supported. Use of compound primary keys is not supported.
- Author:
- Frederik Heremans, Daniel Meyer
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
JPAVariableSerializer
public JPAVariableSerializer()
getName
public 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.
canWriteValue
protected boolean canWriteValue(org.camunda.bpm.engine.variable.value.TypedValue value)
- Specified by:
canWriteValue in class AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.value.ObjectValue>
isDeserializedObjectValue
protected boolean isDeserializedObjectValue(org.camunda.bpm.engine.variable.value.TypedValue value)
convertToTypedValue
public org.camunda.bpm.engine.variable.value.ObjectValue 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
writeValue
public void writeValue(org.camunda.bpm.engine.variable.value.ObjectValue objectValue,
ValueFields valueFields)
- Description copied from interface:
TypedValueSerializer
- Serialize a
TypedValue to the ValueFields.
- Parameters:
objectValue - the TypedValue to persistvalueFields - the ValueFields to which the value should be persisted
readValue
public org.camunda.bpm.engine.variable.value.ObjectValue readValue(ValueFields valueFields,
boolean deserializeObjectValue)
- Description copied from interface:
TypedValueSerializer
- Retrieve a
TypedValue from the provided ValueFields.
- Parameters:
valueFields - the ValueFields to retrieve the value fromdeserializeObjectValue - indicates whether a SerializableValue should be deserialized.
- Returns:
- the
TypedValue
Copyright © 2017 camunda services GmbH. All rights reserved.