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

    Fields
    Modifier and Type
    Field
    Description
    protected DataManager
     
     
    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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • transaction

      @Autowired protected org.springframework.transaction.support.TransactionTemplate transaction
    • dataManager

      @Autowired protected DataManager dataManager
    • storeAwareLocator

      @Autowired protected StoreAwareLocator storeAwareLocator
  • Constructor Details

    • JpqlDataLoader

      public JpqlDataLoader()
  • Method Details

    • parseQueryOutputParametersNames

      protected List<com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.OutputValue> parseQueryOutputParametersNames(String query)
    • 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 interface com.haulmont.yarg.loaders.ReportDataLoader
    • executeQuery

      @Nullable protected List executeQuery(com.haulmont.yarg.structure.BandData parentBand, Map<String,Object> params, String storeName, String query)
    • insertParameters

      protected javax.persistence.Query insertParameters(String query, String storeName, com.haulmont.yarg.structure.BandData parentBand, Map<String,Object> params)
    • insertParameterToQuery

      protected String insertParameterToQuery(String query, com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.QueryParameter parameter)
      Overrides:
      insertParameterToQuery in class com.haulmont.yarg.loaders.impl.AbstractDbDataLoader
    • resolveNamedParameterName

      protected String resolveNamedParameterName(com.haulmont.yarg.loaders.impl.AbstractDbDataLoader.QueryParameter parameter)
    • trimQuery

      protected String trimQuery(String query)