public abstract class BaseMapProperty extends Property
accessPath, alternativePropertyKey, defaultValue, descriptor, field, label, length, name, nameAsMapping, nullable, propertyKey, propertyName| Modifier | Constructor and Description |
|---|---|
protected |
BaseMapProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
| Modifier and Type | Method and Description |
|---|---|
protected SafeMap<?,?> |
getMap(Object entity) |
Object |
getValueAsCopy(Object entity)
For modifyable datatypes like collections, this returns the value as copy so that further modifications
will not change the returned value.
|
protected Object |
getValueFromField(Object target)
Obtains the value from the field in the given target object
|
protected void |
setValueToField(Object value,
Object target)
Applies the given value to the field in the given target object
|
Object |
transformValue(sirius.kernel.commons.Value value)
Converts the given value, which most probably contains user input as string into the target type of this
property.
|
checkNullability, checkUniqueness, determineDefaultValue, determineLengths, determineNullability, equals, getAnnotation, getDefaultValue, getDefinition, getDescriptor, getField, getLabel, getLength, getName, getPropertyName, getValue, getValueForDatasource, hashCode, illegalFieldValue, isNullable, link, onAfterDelete, onAfterSave, onBeforeDelete, onBeforeSave, onBeforeSaveChecks, parseValue, setValue, setValueFromDatasource, toString, transformFromDatasource, transformFromElastic, transformFromJDBC, transformFromMongo, transformToDatasource, transformToElastic, transformToJDBC, transformToMongois, makeNewInstance, tryAsprotected BaseMapProperty(EntityDescriptor descriptor, AccessPath accessPath, Field field)
protected Object getValueFromField(Object target)
PropertygetValueFromField in class Propertytarget - the target object determined by the access pathpublic Object getValueAsCopy(Object entity)
PropertygetValueAsCopy in class Propertyentity - the entity to fetch the value frompublic Object transformValue(sirius.kernel.commons.Value value)
PropertytransformValue in class Propertyvalue - the value to convertprotected void setValueToField(Object value, Object target)
PropertysetValueToField in class Propertyvalue - the database value to storetarget - the target object determined by the access pathCopyright © 2018. All rights reserved.