Interface GenericImporterService.RelationData
- Enclosing interface:
GenericImporterService
public static interface GenericImporterService.RelationData
Helper structure that contains all referenced related
Entity
instances per batch, so that they have to be loaded only once per batch.-
Method Summary
Modifier and TypeMethodDescription@Nullable Entity
getRelationValue
(EntityModel entityModel, FieldModel identifierField, Object identifier)
-
Method Details
-
getRelationValue
@Nullable @Nullable Entity getRelationValue(EntityModel entityModel, FieldModel identifierField, Object identifier) - Parameters:
entityModel
- the model of the related entity that should be returnedidentifierField
- the field that is used to query the entityidentifier
- the identifier of the related entity (typically the unique_id, but depends on the import file)- Returns:
- the related entity with the given model and identifier
-