Class JsonAllRecordsExporter
java.lang.Object
io.jmix.gridexportflowui.exporter.AbstractAllRecordsExporter
io.jmix.gridexportflowui.exporter.json.JsonAllRecordsExporter
@Component("grdexp_JsonAllRecordsExporter")
public class JsonAllRecordsExporter
extends AbstractAllRecordsExporter
Class is used by 
ExportAction for exporting all records from the database to JSON format.- 
Field SummaryFields inherited from class io.jmix.gridexportflowui.exporter.AbstractAllRecordsExporterdataManager, gridExportProperties, LAST_LOADED_PK_CONDITION_PARAMETER_NAME, metadataTools, platformTransactionManager
- 
Constructor SummaryConstructorsConstructorDescriptionJsonAllRecordsExporter(MetadataTools metadataTools, DataManager dataManager, org.springframework.transaction.PlatformTransactionManager platformTransactionManager, GridExportProperties gridExportProperties) 
- 
Method SummaryMethods inherited from class io.jmix.gridexportflowui.exporter.AbstractAllRecordsExporterexportAll, exportEntities, exportKeyValueEntities, generateLoadContext, generateLoadContext, getDataLoader, getValueLoadContextQuery, setDataManager, setGridExportProperties, setPlatformTransactionManager
- 
Constructor Details- 
JsonAllRecordsExporterpublic JsonAllRecordsExporter(MetadataTools metadataTools, DataManager dataManager, org.springframework.transaction.PlatformTransactionManager platformTransactionManager, GridExportProperties gridExportProperties) 
 
- 
- 
Method Details- 
exportAllMethod loads all entity instances associated with the givendataUnitand applies thejsonObjectCreatorfunction to each loaded entity instance. Creation of the output file object is the responsibility of the function. Data is loaded in batches, the batch size is configured by theGridExportProperties.getExportAllBatchSize().- Parameters:
- dataUnit- data unit linked with the data
- jsonObjectCreator- function that is being applied to each loaded instance
 
 
-