Class TypedValueField
java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.util.TypedValueField
- All Implemented Interfaces:
DbEntityLifecycleAware
,CommandContextListener
public class TypedValueField
extends Object
implements DbEntityLifecycleAware, CommandContextListener
A field what provide a typed version of a value. It can
be used in an entity which implements
ValueFields
.- Author:
- Philipp Ossler
-
Field Summary
Modifier and TypeFieldDescriptionprotected TypedValue
protected String
protected static final EnginePersistenceLogger
protected boolean
protected TypedValueSerializer<?>
protected String
protected List<TypedValueUpdateListener>
protected final ValueFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
protected void
protected static VariableSerializers
If the variable value could not be loaded, this returns the error message.static TypedValueSerializer<?>
getFallbackSerializer
(String serializerName) static VariableSerializers
getTypedValue
(boolean asTransientValue) getTypedValue
(boolean deserializeValue, boolean asTransientValue) getValue()
boolean
protected boolean
isMutableValue
(TypedValue value) protected boolean
void
void
onCommandContextClose
(CommandContext commandContext) void
onCommandFailed
(CommandContext commandContext, Throwable t) void
postLoad()
void
setSerializerName
(String serializerName) setValue
(TypedValue value) protected void
writeValue
(TypedValue value, ValueFields valueFields)
-
Field Details
-
LOG
-
serializerName
-
serializer
-
cachedValue
-
errorMessage
-
valueFields
-
notifyOnImplicitUpdates
protected boolean notifyOnImplicitUpdates -
updateListeners
-
-
Constructor Details
-
TypedValueField
-
-
Method Details
-
getValue
-
getTypedValue
-
getTypedValue
-
setValue
-
isMutable
public boolean isMutable() -
isMutableValue
-
isValuedImplicitlyUpdated
protected boolean isValuedImplicitlyUpdated() -
writeValue
-
onCommandContextClose
- Specified by:
onCommandContextClose
in interfaceCommandContextListener
-
notifyImplicitValueUpdateIfEnabled
public void notifyImplicitValueUpdateIfEnabled() -
onCommandFailed
- Specified by:
onCommandFailed
in interfaceCommandContextListener
-
getSerializer
-
ensureSerializerInitialized
protected void ensureSerializerInitialized() -
getSerializers
-
getFallbackSerializer
-
getCurrentPaSerializers
-
getSerializerName
-
setSerializerName
-
addImplicitUpdateListener
-
getTypeName
- Returns:
- the type name of the value
-
getErrorMessage
If the variable value could not be loaded, this returns the error message.- Returns:
- an error message indicating why the variable value could not be loaded.
-
postLoad
public void postLoad()- Specified by:
postLoad
in interfaceDbEntityLifecycleAware
-
clear
public void clear()
-