Class ItemSummaryQuery<T extends HasCalculableObjectItems>

Object
ItemSummaryQuery<T>

public class ItemSummaryQuery<T extends HasCalculableObjectItems> extends Object
  • Field Details

  • Constructor Details

    • ItemSummaryQuery

      public ItemSummaryQuery()
    • ItemSummaryQuery

      public ItemSummaryQuery(String itemToObjectFkName)
  • Method Details

    • isDualGroupBy

      public boolean isDualGroupBy()
    • isNoGroupBy

      public boolean isNoGroupBy()
    • getItemGroupBy

      public String getItemGroupBy()
    • setItemGroupBy

      public void setItemGroupBy(String itemGroupBy)
    • isDoCount

      public boolean isDoCount()
    • setDoCount

      public void setDoCount(boolean doCount)
    • getItemToObjectFkName

      public String getItemToObjectFkName()
    • setItemToObjectFkName

      public void setItemToObjectFkName(String itemToObjectFkName)
    • getItemSqlAlias

      public String getItemSqlAlias()
    • setItemSqlAlias

      public void setItemSqlAlias(String itemSqlAlias)
    • getAllItemsFilter

      public Filter getAllItemsFilter(T calcObj)
    • getItemFilter

      public Filter getItemFilter()
    • setItemFilter

      public void setItemFilter(Filter itemFilter)
    • setCastCallback

      public void setCastCallback(ItemSummaryQuery.QueryGeneratorCallback castCallback)
    • getProductFilter

      public Filter getProductFilter()
    • setProductFilter

      public void setProductFilter(Filter productFilter)
    • getSanitizedProductGroupBy

      public String getSanitizedProductGroupBy()
    • getProductGroupBy

      public String getProductGroupBy()
    • setProductGroupBy

      public void setProductGroupBy(String productGroupBy)
    • getObjectTypedIds

      public List<String> getObjectTypedIds()
    • setObjectTypedIds

      public void setObjectTypedIds(List<String> objectTypedIds)
    • addObjectTypedId

      public void addObjectTypedId(String objectTypedId)
    • getProjections

      public List<ItemSummaryQuery.Projection> getProjections()
    • setProjections

      public void setProjections(List<ItemSummaryQuery.Projection> projections)
    • getNumberOfProjections

      public int getNumberOfProjections()
    • addProjection

      public void addProjection(String field, String aggregation)
    • addProjection

      public void addProjection(String field, String aggregation, String weight)
    • addProjection

      public void addProjection(String fieldPrefix, String field, String aggregation, String weight)
    • generateQuerySQL

      public String generateQuerySQL(PersistedObjectService objService, String productHQL, String itemHQL, T calcObj)
    • aggregate

      public void aggregate(Map<String,Object[]> results, List<Object[]> queryResults)
    • addTotal

      public void addTotal(Map<String,Object[]> results)
    • getProjectionName

      protected String getProjectionName(ItemSummaryQuery.Projection p)
    • asListOfMaps

      public List<Map<String,Object>> asListOfMaps(Map<String,Object[]> resultList)
    • postProcessRow

      protected void postProcessRow(Map<String,Object> row)
    • resolveFieldName

      protected String resolveFieldName(AbstractCalculableObjectItem calcObjItem, String fieldNameOrLabel, String itemSqlAlias, PersistedObjectService objService)
    • getProjectionSQL

      public String getProjectionSQL(PersistedObjectService objService, T calcObj)