Package io.jmix.reports.libintegration
Class JpqlDataLoader
java.lang.Object
io.jmix.reports.yarg.loaders.impl.AbstractDataLoader
io.jmix.reports.yarg.loaders.impl.AbstractDbDataLoader
io.jmix.reports.libintegration.JpqlDataLoader
- All Implemented Interfaces:
ReportDataLoader
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.reports.yarg.loaders.impl.AbstractDbDataLoader
AbstractDbDataLoader.OutputValue, AbstractDbDataLoader.QueryPack, AbstractDbDataLoader.QueryParameter
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataManager
protected StoreAwareLocator
protected org.springframework.transaction.support.TransactionTemplate
Fields inherited from class io.jmix.reports.yarg.loaders.impl.AbstractDbDataLoader
COMMON_PARAM_PATTERN
Fields inherited from class io.jmix.reports.yarg.loaders.impl.AbstractDataLoader
fieldsConverter, parametersConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List
protected javax.persistence.Query
protected String
insertParameterToQuery
(String query, AbstractDbDataLoader.QueryParameter parameter) This method MUST return list of mutable maps.protected List<AbstractDbDataLoader.OutputValue>
protected String
protected String
Methods inherited from class io.jmix.reports.yarg.loaders.impl.AbstractDbDataLoader
fillOutputData, findParameterNames, prepareQuery, processQueryTemplate
Methods inherited from class io.jmix.reports.yarg.loaders.impl.AbstractDataLoader
addParentBandDataToParameters, convertOutputValue, convertParameter, getFieldsConverter, getParametersConverter, setFieldsConverter, setParametersConverter
-
Field Details
-
transaction
@Autowired protected org.springframework.transaction.support.TransactionTemplate transaction -
dataManager
-
storeAwareLocator
-
-
Constructor Details
-
JpqlDataLoader
public JpqlDataLoader()
-
-
Method Details
-
parseQueryOutputParametersNames
-
loadData
public List<Map<String,Object>> loadData(ReportQuery reportQuery, BandData parentBand, Map<String, Object> params) Description copied from interface:ReportDataLoader
This method MUST return list of mutable maps. We need mutability to put there some values implicitly.- Specified by:
loadData
in interfaceReportDataLoader
-
executeQuery
-
insertParameters
-
insertParameterToQuery
protected String insertParameterToQuery(String query, AbstractDbDataLoader.QueryParameter parameter) - Overrides:
insertParameterToQuery
in classAbstractDbDataLoader
-
resolveNamedParameterName
-
trimQuery
-