Using the Data Transfer API: Overview
Using the Data Transfer API: Overview
DatabaseExporter and DatabaseImporter API
DatabaseExporter provides all functionality for data export use cases, while DatabaseImporter provides all functionality for data import and compare. It offers simple yet universal functionality that can be used by any workflow rule or Java class.
The DatabaseExporter and DatabaseImporter are defined as Spring Beans in the following file:
/WEB-INF/config/context/core/core-optional.xml
To obtain the DatabaseExporter or DatabaseImporter interface reference, you should define your own class as a Spring bean as well. Then use dependency injection to set the reference to the DatabaseExporter and DatabaseImporter beans.
DatabaseExporter databaseImporter =
(DatabaseExporter) ContextStore.get().getBean("databaseImporter");
DatabaseImporter databaseExporter =
(DatabaseImporter) ContextStore.get().getBean("databaseExporter");
The following topics provide detailed outlines of the DatabaseExporter, DatabaseImporter, and SingleRecordImporter APIs.