Package net.pricefx.service
Class ItemSummaryQuery<T extends HasCalculableObjectItems>
Object
ItemSummaryQuery<T>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addObjectTypedId
(String objectTypedId) void
addProjection
(String field, String aggregation) void
addProjection
(String field, String aggregation, String weight) void
addProjection
(String fieldPrefix, String field, String aggregation, String weight) void
void
asListOfMaps
(Map<String, Object[]> resultList) generateQuerySQL
(PersistedObjectService objService, String productHQL, String itemHQL, T calcObj) getAllItemsFilter
(T calcObj) int
protected String
getProjectionSQL
(PersistedObjectService objService, T calcObj) boolean
boolean
boolean
protected void
postProcessRow
(Map<String, Object> row) protected String
resolveFieldName
(AbstractCalculableObjectItem calcObjItem, String fieldNameOrLabel, String itemSqlAlias, PersistedObjectService objService) void
setCastCallback
(ItemSummaryQuery.QueryGeneratorCallback castCallback) void
setDoCount
(boolean doCount) void
setItemFilter
(Filter itemFilter) void
setItemGroupBy
(String itemGroupBy) void
setItemSqlAlias
(String itemSqlAlias) void
setItemToObjectFkName
(String itemToObjectFkName) void
setObjectTypedIds
(List<String> objectTypedIds) void
setProductFilter
(Filter productFilter) void
setProductGroupBy
(String productGroupBy) void
setProjections
(List<ItemSummaryQuery.Projection> projections)
-
Field Details
-
TOTAL_KEY
- See Also:
-
-
Constructor Details
-
ItemSummaryQuery
public ItemSummaryQuery() -
ItemSummaryQuery
-
-
Method Details
-
isDualGroupBy
public boolean isDualGroupBy() -
isNoGroupBy
public boolean isNoGroupBy() -
getItemGroupBy
-
setItemGroupBy
-
isDoCount
public boolean isDoCount() -
setDoCount
public void setDoCount(boolean doCount) -
getItemToObjectFkName
-
setItemToObjectFkName
-
getItemSqlAlias
-
setItemSqlAlias
-
getAllItemsFilter
-
getItemFilter
-
setItemFilter
-
setCastCallback
-
getProductFilter
-
setProductFilter
-
getSanitizedProductGroupBy
-
getProductGroupBy
-
setProductGroupBy
-
getObjectTypedIds
-
setObjectTypedIds
-
addObjectTypedId
-
getProjections
-
setProjections
-
getNumberOfProjections
public int getNumberOfProjections() -
addProjection
-
addProjection
-
addProjection
-
generateQuerySQL
-
aggregate
-
addTotal
-
getProjectionName
-
asListOfMaps
-
postProcessRow
-
resolveFieldName
-
getProjectionSQL
-