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
FieldsModifier and TypeFieldDescriptionprotected org.camunda.bpm.engine.variable.value.TypedValueprotected Stringprotected static final EnginePersistenceLoggerprotected booleanprotected TypedValueSerializer<?>protected Stringprotected List<TypedValueUpdateListener>protected final ValueFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()protected voidprotected static VariableSerializersIf the variable value could not be loaded, this returns the error message.static TypedValueSerializer<?>getFallbackSerializer(String serializerName) static VariableSerializersorg.camunda.bpm.engine.variable.value.TypedValuegetTypedValue(boolean asTransientValue) org.camunda.bpm.engine.variable.value.TypedValuegetTypedValue(boolean deserializeValue, boolean asTransientValue) getValue()booleanprotected booleanisMutableValue(org.camunda.bpm.engine.variable.value.TypedValue value) protected booleanvoidvoidonCommandContextClose(CommandContext commandContext) voidonCommandFailed(CommandContext commandContext, Throwable t) voidpostLoad()voidsetSerializerName(String serializerName) org.camunda.bpm.engine.variable.value.TypedValuesetValue(org.camunda.bpm.engine.variable.value.TypedValue value) protected voidwriteValue(org.camunda.bpm.engine.variable.value.TypedValue value, ValueFields valueFields)
-
Field Details
-
LOG
-
serializerName
-
serializer
-
cachedValue
protected org.camunda.bpm.engine.variable.value.TypedValue cachedValue -
errorMessage
-
valueFields
-
notifyOnImplicitUpdates
protected boolean notifyOnImplicitUpdates -
updateListeners
-
-
Constructor Details
-
TypedValueField
-
-
Method Details
-
getValue
-
getTypedValue
public org.camunda.bpm.engine.variable.value.TypedValue getTypedValue(boolean asTransientValue) -
getTypedValue
public org.camunda.bpm.engine.variable.value.TypedValue getTypedValue(boolean deserializeValue, boolean asTransientValue) -
setValue
public org.camunda.bpm.engine.variable.value.TypedValue setValue(org.camunda.bpm.engine.variable.value.TypedValue value) -
isMutable
public boolean isMutable() -
isMutableValue
protected boolean isMutableValue(org.camunda.bpm.engine.variable.value.TypedValue value) -
isValuedImplicitlyUpdated
protected boolean isValuedImplicitlyUpdated() -
writeValue
protected void writeValue(org.camunda.bpm.engine.variable.value.TypedValue value, ValueFields valueFields) -
onCommandContextClose
- Specified by:
onCommandContextClosein interfaceCommandContextListener
-
notifyImplicitValueUpdateIfEnabled
public void notifyImplicitValueUpdateIfEnabled() -
onCommandFailed
- Specified by:
onCommandFailedin 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:
postLoadin interfaceDbEntityLifecycleAware
-
clear
public void clear()
-