public class SerializableType extends ByteArrayType implements MutableVariableType<Object,byte[]>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
trackDeserializedObjects |
static String |
TYPE_NAME |
| Constructor and Description |
|---|
SerializableType() |
SerializableType(boolean trackDeserializedObjects) |
| Modifier and Type | Method and Description |
|---|---|
protected ObjectInputStream |
createObjectInputStream(InputStream is) |
protected ObjectOutputStream |
createObjectOutputStream(OutputStream os) |
Object |
deserialize(byte[] bytes,
ValueFields valueFields) |
protected String |
getEngineType(String scopeType) |
String |
getTypeName() |
Object |
getValue(ValueFields valueFields) |
protected VariableServiceConfiguration |
getVariableServiceConfiguration(ValueFields valueFields) |
boolean |
isAbleToStore(Object value) |
byte[] |
serialize(Object value,
ValueFields valueFields) |
void |
setValue(Object value,
ValueFields valueFields) |
protected void |
traceValue(Object value,
byte[] valueBytes,
ValueFields valueFields) |
boolean |
updateValueIfChanged(Object tracedObject,
byte[] originalBytes,
VariableInstanceEntity variableInstanceEntity) |
isCachableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisReadOnlypublic static final String TYPE_NAME
protected boolean trackDeserializedObjects
public SerializableType()
public SerializableType(boolean trackDeserializedObjects)
public String getTypeName()
getTypeName in interface VariableTypegetTypeName in class ByteArrayTypepublic Object getValue(ValueFields valueFields)
getValue in interface VariableTypegetValue in class ByteArrayTypepublic void setValue(Object value, ValueFields valueFields)
setValue in interface VariableTypesetValue in class ByteArrayTypeprotected void traceValue(Object value, byte[] valueBytes, ValueFields valueFields)
public boolean updateValueIfChanged(Object tracedObject, byte[] originalBytes, VariableInstanceEntity variableInstanceEntity)
updateValueIfChanged in interface MutableVariableType<Object,byte[]>public byte[] serialize(Object value, ValueFields valueFields)
public Object deserialize(byte[] bytes, ValueFields valueFields)
protected VariableServiceConfiguration getVariableServiceConfiguration(ValueFields valueFields)
public boolean isAbleToStore(Object value)
isAbleToStore in interface VariableTypeisAbleToStore in class ByteArrayTypeprotected ObjectInputStream createObjectInputStream(InputStream is) throws IOException
IOExceptionprotected ObjectOutputStream createObjectOutputStream(OutputStream os) throws IOException
IOExceptionCopyright © 2022 Flowable. All rights reserved.