Package io.jmix.reports.libintegration
Class JpqlDataLoader
java.lang.Object
com.haulmont.yarg.loaders.impl.AbstractDataLoader
com.haulmont.yarg.loaders.impl.AbstractDbDataLoader
io.jmix.reports.libintegration.JpqlDataLoader
- All Implemented Interfaces:
com.haulmont.yarg.loaders.ReportDataLoader
public class JpqlDataLoader
extends com.haulmont.yarg.loaders.impl.AbstractDbDataLoader
implements com.haulmont.yarg.loaders.ReportDataLoader
-
Nested Class Summary
Nested classes/interfaces inherited from class com.haulmont.yarg.loaders.impl.AbstractDbDataLoader
com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.OutputValue, com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.QueryPack, com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.QueryParameter
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataManager
protected StoreAwareLocator
protected org.springframework.transaction.support.TransactionTemplate
Fields inherited from class com.haulmont.yarg.loaders.impl.AbstractDbDataLoader
COMMON_PARAM_PATTERN
Fields inherited from class com.haulmont.yarg.loaders.impl.AbstractDataLoader
fieldsConverter, parametersConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List
executeQuery
(com.haulmont.yarg.structure.BandData parentBand, Map<String, Object> params, String storeName, String query) protected javax.persistence.Query
insertParameters
(String query, String storeName, com.haulmont.yarg.structure.BandData parentBand, Map<String, Object> params) protected String
insertParameterToQuery
(String query, com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.QueryParameter parameter) loadData
(com.haulmont.yarg.structure.ReportQuery reportQuery, com.haulmont.yarg.structure.BandData parentBand, Map<String, Object> params) protected List<com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.OutputValue>
protected String
resolveNamedParameterName
(com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.QueryParameter parameter) protected String
Methods inherited from class com.haulmont.yarg.loaders.impl.AbstractDbDataLoader
fillOutputData, findParameterNames, prepareQuery, processQueryTemplate
Methods inherited from class com.haulmont.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(com.haulmont.yarg.structure.ReportQuery reportQuery, com.haulmont.yarg.structure.BandData parentBand, Map<String, Object> params) - Specified by:
loadData
in interfacecom.haulmont.yarg.loaders.ReportDataLoader
-
executeQuery
-
insertParameters
-
insertParameterToQuery
protected String insertParameterToQuery(String query, com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.QueryParameter parameter) - Overrides:
insertParameterToQuery
in classcom.haulmont.yarg.loaders.impl.AbstractDbDataLoader
-
resolveNamedParameterName
protected String resolveNamedParameterName(com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.QueryParameter parameter) -
trimQuery
-