public class TypedValueField extends Object implements DbEntityLifecycleAware, CommandContextListener
ValueFields
.Modifier and Type | Field and Description |
---|---|
protected TypedValue |
cachedValue |
protected String |
errorMessage |
protected static EnginePersistenceLogger |
LOG |
protected boolean |
notifyOnImplicitUpdates |
protected TypedValueSerializer<?> |
serializer |
protected String |
serializerName |
protected List<TypedValueUpdateListener> |
updateListeners |
protected ValueFields |
valueFields |
Constructor and Description |
---|
TypedValueField(ValueFields valueFields,
boolean notifyOnImplicitUpdates) |
protected static final EnginePersistenceLogger LOG
protected String serializerName
protected TypedValueSerializer<?> serializer
protected TypedValue cachedValue
protected String errorMessage
protected final ValueFields valueFields
protected boolean notifyOnImplicitUpdates
protected List<TypedValueUpdateListener> updateListeners
public TypedValueField(ValueFields valueFields, boolean notifyOnImplicitUpdates)
public Object getValue()
public TypedValue getTypedValue(boolean asTransientValue)
public TypedValue getTypedValue(boolean deserializeValue, boolean asTransientValue)
public TypedValue setValue(TypedValue value)
public boolean isMutable()
protected boolean isMutableValue(TypedValue value)
protected boolean isValuedImplicitlyUpdated()
protected void writeValue(TypedValue value, ValueFields valueFields)
public void onCommandContextClose(CommandContext commandContext)
onCommandContextClose
in interface CommandContextListener
public void notifyImplicitValueUpdate()
public void onCommandFailed(CommandContext commandContext, Throwable t)
onCommandFailed
in interface CommandContextListener
public TypedValueSerializer<?> getSerializer()
protected void ensureSerializerInitialized()
public static VariableSerializers getSerializers()
public static TypedValueSerializer<?> getFallbackSerializer(String serializerName)
protected static VariableSerializers getCurrentPaSerializers()
public String getSerializerName()
public void setSerializerName(String serializerName)
public void addImplicitUpdateListener(TypedValueUpdateListener listener)
public String getTypeName()
public String getErrorMessage()
public void postLoad()
postLoad
in interface DbEntityLifecycleAware
public void clear()
Copyright © 2022. All rights reserved.