Class LongJsonType
- java.lang.Object
-
- org.activiti.engine.impl.variable.ByteArrayType
-
- org.activiti.engine.impl.variable.SerializableType
-
- org.activiti.engine.impl.variable.LongJsonType
-
- All Implemented Interfaces:
VariableType
public class LongJsonType extends SerializableType
-
-
Field Summary
Fields Modifier and Type Field Description static StringLONG_JSON-
Fields inherited from class org.activiti.engine.impl.variable.SerializableType
trackDeserializedObjects, TYPE_NAME
-
-
Constructor Summary
Constructors Constructor Description LongJsonType(int minLength, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean serializePOJOsInVariablesToJson, JsonTypeConverter jsonTypeConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectdeserialize(byte[] bytes, ValueFields valueFields)StringgetTypeName()name of variable type (limited to 100 characters length)booleanisAbleToStore(Object value)byte[]serialize(Object value, ValueFields valueFields)-
Methods inherited from class org.activiti.engine.impl.variable.SerializableType
createObjectInputStream, createObjectOutputStream, getValue, setValue
-
Methods inherited from class org.activiti.engine.impl.variable.ByteArrayType
isCachable
-
-
-
-
Field Detail
-
LONG_JSON
public static final String LONG_JSON
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LongJsonType
public LongJsonType(int minLength, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean serializePOJOsInVariablesToJson, JsonTypeConverter jsonTypeConverter)
-
-
Method Detail
-
getTypeName
public String getTypeName()
Description copied from interface:VariableTypename of variable type (limited to 100 characters length)- Specified by:
getTypeNamein interfaceVariableType- Overrides:
getTypeNamein classSerializableType
-
isAbleToStore
public boolean isAbleToStore(Object value)
- Specified by:
isAbleToStorein interfaceVariableType- Overrides:
isAbleToStorein classSerializableType- Returns:
- whether this variable type can store the specified value.
-
serialize
public byte[] serialize(Object value, ValueFields valueFields)
- Overrides:
serializein classSerializableType
-
deserialize
public Object deserialize(byte[] bytes, ValueFields valueFields)
- Overrides:
deserializein classSerializableType
-
-