Class ReferenceCreator
java.lang.Object
io.jmix.dataimport.property.populator.impl.ReferenceCreator
-
Field Summary
Modifier and TypeFieldDescriptionprotected DuplicateEntityManager
protected EntityPropertiesPopulator
static final org.slf4j.Logger
protected Metadata
protected PropertyMappingUtils
protected SimplePropertyValueProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<Object>
createEmptyCollection
(MetaProperty referenceMetaProperty) createEntity
(PropertyMappingContext context) createEntity
(PropertyMappingContext context, List<Object> createdReferences) createEntityCollection
(Object propertyOwnerEntity, PropertyMappingContext context) protected Collection<Object>
createEntityCollection
(Object entityToPopulate, PropertyMappingContext context, ImportedObjectList objectList) protected Object
protected Object
getReferenceEntity
(PropertyMappingContext context, Collection<Object> existingEntities) protected Object
populateReferenceEntity
(Object referenceEntity, PropertyMappingContext context)
-
Field Details
-
log
public static final org.slf4j.Logger log -
metadata
-
propertyMappingUtils
-
entityPropertiesPopulator
-
duplicateEntityManager
-
simplePropertyValueProvider
-
-
Constructor Details
-
ReferenceCreator
public ReferenceCreator()
-
-
Method Details
-
createEntity
@Nullable public Object createEntity(PropertyMappingContext context, @Nullable List<Object> createdReferences) -
createEntity
-
createEntityCollection
@Nullable public Collection<Object> createEntityCollection(Object propertyOwnerEntity, PropertyMappingContext context) -
populateReferenceEntity
-
getReferenceEntity
protected Object getReferenceEntity(PropertyMappingContext context, @Nullable Collection<Object> existingEntities) -
createReferenceEntity
-
createEntityCollection
protected Collection<Object> createEntityCollection(Object entityToPopulate, PropertyMappingContext context, ImportedObjectList objectList) -
createEmptyCollection
-