Class ExtractionContextImpl
java.lang.Object
io.jmix.reports.yarg.reporting.extraction.ExtractionContextImpl
- All Implemented Interfaces:
ExtractionContext
Default data extraction context implementation
-
Field Summary
-
Constructor Summary
ConstructorDescriptionExtractionContextImpl
(DataExtractor extractor, ReportBand band, BandData parentBand, Map<String, Object> params) -
Method Summary
Modifier and TypeMethodDescriptionextendParams
(Map<String, Object> params) Method must extend existed params with presented params mapgetBand()
boolean
withBand
(ReportBand band, BandData parentBand) Method must create new version of context with new report band and parent band datawithParams
(Map<String, Object> params) Method must create new version of context with new params (not extended)withParentData
(BandData parentBand) Method must create new version of context with parent band data
-
Field Details
-
extractor
-
band
-
parentBand
-
params
-
-
Constructor Details
-
ExtractionContextImpl
public ExtractionContextImpl(DataExtractor extractor, ReportBand band, BandData parentBand, Map<String, Object> params)
-
-
Method Details
-
putEmptyRowIfNoDataSelected
public boolean putEmptyRowIfNoDataSelected()- Specified by:
putEmptyRowIfNoDataSelected
in interfaceExtractionContext
- Returns:
- boolean flag that controller should create empty data row if no report query data presented
-
getBand
- Specified by:
getBand
in interfaceExtractionContext
- Returns:
- current processing report band
-
getParentBandData
- Specified by:
getParentBandData
in interfaceExtractionContext
- Returns:
- parent report band loaded data
-
getParams
- Specified by:
getParams
in interfaceExtractionContext
- Returns:
- params for data loader
-
extendParams
Description copied from interface:ExtractionContext
Method must extend existed params with presented params map- Specified by:
extendParams
in interfaceExtractionContext
-
withParams
Description copied from interface:ExtractionContext
Method must create new version of context with new params (not extended)- Specified by:
withParams
in interfaceExtractionContext
-
withBand
Description copied from interface:ExtractionContext
Method must create new version of context with new report band and parent band data- Specified by:
withBand
in interfaceExtractionContext
-
withParentData
Description copied from interface:ExtractionContext
Method must create new version of context with parent band data- Specified by:
withParentData
in interfaceExtractionContext
-