Class EntityExportServiceImpl
java.lang.Object
ch.tocco.nice2.reporting.impl.action.export.EntityExportServiceImpl
- All Implemented Interfaces:
EntityExportService
-
Constructor Summary
ConstructorDescriptionEntityExportServiceImpl
(PersistenceService persistenceService, TemplateEngine templateEngine) -
Method Summary
Modifier and TypeMethodDescriptionvoid
exportData
(QueryConfigurator queryConfigurator, ExportActionConfig config, ExportDataConsumer dataConsumer) Fetches the data to be exported in an efficient way using aPathQueryBuilder
and passes them on to theExportDataConsumer
.
-
Constructor Details
-
EntityExportServiceImpl
public EntityExportServiceImpl(PersistenceService persistenceService, TemplateEngine templateEngine)
-
-
Method Details
-
exportData
public void exportData(QueryConfigurator queryConfigurator, ExportActionConfig config, ExportDataConsumer dataConsumer) Description copied from interface:EntityExportService
Fetches the data to be exported in an efficient way using aPathQueryBuilder
and passes them on to theExportDataConsumer
. If big amounts of data are exported, the data is fetched in partitions. The data can be converted to anOutputStream
using an implementation ofEntityExportWriter
.- Specified by:
exportData
in interfaceEntityExportService
-