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 Details

    • getRelationValue

      @Nullable @Nullable Entity getRelationValue(EntityModel entityModel, FieldModel identifierField, Object identifier)
      Parameters:
      entityModel - the model of the related entity that should be returned
      identifierField - the field that is used to query the entity
      identifier - 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