Class CustomPropertyMapping
java.lang.Object
io.jmix.dataimport.configuration.mapping.CustomPropertyMapping
- All Implemented Interfaces:
PropertyMapping
Mapping for entity property that has a custom value calculated by specified function.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Function<CustomMappingContext,
Object> protected String
-
Constructor Summary
ConstructorDescriptionCustomPropertyMapping
(String entityPropertyName, Function<CustomMappingContext, Object> customValueFunction) -
Method Summary
Modifier and TypeMethodDescriptionGets a data field name.Gets an entity property name.
-
Field Details
-
entityPropertyName
-
customValueFunction
-
-
Constructor Details
-
CustomPropertyMapping
public CustomPropertyMapping(String entityPropertyName, Function<CustomMappingContext, Object> customValueFunction)
-
-
Method Details
-
getDataFieldName
Description copied from interface:PropertyMapping
Gets a data field name.- Specified by:
getDataFieldName
in interfacePropertyMapping
- Returns:
- data field name
-
getCustomValueFunction
-
getEntityPropertyName
Description copied from interface:PropertyMapping
Gets an entity property name.- Specified by:
getEntityPropertyName
in interfacePropertyMapping
- Returns:
- entity property name
-