Package io.jmix.dataimport.impl
Class DataImporterImpl
java.lang.Object
io.jmix.dataimport.impl.DataImporterImpl
- All Implemented Interfaces:
DataImporter
@Component("datimp_DataImporter")
public class DataImporterImpl
extends Object
implements DataImporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.beans.factory.ObjectProvider<DataImportExecutor>protected ImportConfigurationValidatorprotected ImportedDataExtractorsprotected static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionimportData(ImportConfiguration configuration, byte[] content) Creates the entities using data from the given byte array (XLSX, CSV, JSON, XML) and specified import configuration and saves these entities to the database.importData(ImportConfiguration configuration, ImportedData importedData) Creates the entities using data from the givenImportedDataobject and specified import configuration and saves these entities to the database.importData(ImportConfiguration configuration, InputStream inputStream) Creates the entities using data from the given input stream (XLSX, CSV, JSON, XML) and specified import configuration and saves these entities to the database.
-
Field Details
-
log
protected static final org.slf4j.Logger log -
importedDataExtractors
-
dataImportExecutors
@Autowired protected org.springframework.beans.factory.ObjectProvider<DataImportExecutor> dataImportExecutors -
importConfigurationValidator
-
-
Constructor Details
-
DataImporterImpl
public DataImporterImpl()
-
-
Method Details
-
importData
Description copied from interface:DataImporterCreates the entities using data from the given byte array (XLSX, CSV, JSON, XML) and specified import configuration and saves these entities to the database.- Specified by:
importDatain interfaceDataImporter- Parameters:
configuration- import configurationcontent- source (XLSX, CSV, JSON, XML) that contains data for the entities to import- Returns:
- object that contains result of import execution
-
importData
Description copied from interface:DataImporterCreates the entities using data from the given input stream (XLSX, CSV, JSON, XML) and specified import configuration and saves these entities to the database.- Specified by:
importDatain interfaceDataImporter- Parameters:
configuration- import configurationinputStream- source (XLSX, CSV, JSON, XML) that contains data for the entities to import- Returns:
- object that contains result of import execution
-
importData
Description copied from interface:DataImporterCreates the entities using data from the givenImportedDataobject and specified import configuration and saves these entities to the database.- Specified by:
importDatain interfaceDataImporter- Parameters:
configuration- import configurationimportedData- imported data- Returns:
- object that contains result of import execution
-