Class CaseQuery.AggregationQuery
- All Implemented Interfaces:
CaseQuery.IAggregationQuery
- Enclosing class:
CaseQuery
Example:
Corresponds to SQL:
CaseQuery.businessCases().aggregate().sumWorkingTime().avgWorkingTime();
SELECT SUM(WorkingTime) AS SumWorkingTime, AVG(WorkingTime) AS AvgWorkingTime FROM IWA_Case
- API:
- This is a public API.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.ivyteam.ivy.workflow.query.CaseQuery
CaseQuery.AggregationQuery, CaseQuery.EnumValueOrderByColumnQuery<T extends ch.ivyteam.ivy.persistence.IPersistentEnumeration>, CaseQuery.FilterLink, CaseQuery.FilterQuery, CaseQuery.GroupByQuery, CaseQuery.IAggregationQuery, CaseQuery.IBoolFilterQuery, CaseQuery.ICaseBusinessStateFilterQuery, CaseQuery.ICaseStateFilterQuery, CaseQuery.IClobColumnFilterQuery, CaseQuery.IColumnFilterQuery, CaseQuery.ICustomFieldAggregationQuery, CaseQuery.ICustomFieldFilterQuery, CaseQuery.ICustomFieldGroupBy, CaseQuery.ICustomFieldOrderBy, CaseQuery.IDateColumnFilterQuery, CaseQuery.IFilterableColumns, CaseQuery.IFilterLink, CaseQuery.IFilterQuery, CaseQuery.IGroupByQueryColumns, CaseQuery.IIntegerColumnFilterQuery, CaseQuery.INumberColumnFilterQuery, CaseQuery.IOrderByQueryColumns, CaseQuery.IPatternColumnFilterQuery, CaseQuery.IStringColumnFilterQuery, CaseQuery.IUUIDColumnFilterQuery, CaseQuery.IWorkflowPriorityFilterQuery, CaseQuery.LongValueOrderByColumnQuery, CaseQuery.OrderByColumnQuery, CaseQuery.OrderByQuery, CaseQuery.StringValueOrderByColumnQuery -
Method Summary
Modifier and TypeMethodDescriptionAdds a result columnAvgBusinessRuntimeto the query, that contains the average of the fieldBusinessRuntimeof all (grouped) rows.Adds a result columnAvgEndTimestampto the query, that contains the average of the fieldEndTimestampof all (grouped) rows.Adds a result columnAvgStartTimestampto the query, that contains the average of the fieldStartTimestampof all (grouped) rows.Adds a result columnAvgWorkingTimeto the query, that contains the average of the fieldWorkingTimeof all (grouped) rows.Adds a result columnCountto the query, that contains the number of (grouped) rows.Adds a result custom field to the query.Adds a result columnMaxBusinessCalendarto the query, that contains the maximum value of the fieldBusinessCalendarof all (grouped) rows.Adds a result columnMaxBusinessRuntimeto the query, that contains the maximum value of the fieldBusinessRuntimeof all (grouped) rows.Adds a result columnMaxCaseIdto the query, that contains the maximum value of the fieldCaseIdof all (grouped) rows.Adds a result columnMaxCategoryto the query, that contains the maximum value of the fieldCategoryof all (grouped) rows.Adds a result columnMaxCreatorUserDisplayNameto the query, that contains the maximum value of the fieldCreatorUserDisplayNameof all (grouped) rows.Adds a result columnMaxCreatorUserNameto the query, that contains the maximum value of the fieldCreatorUserNameof all (grouped) rows.Adds a result columnMaxEndTimestampto the query, that contains the maximum value of the fieldEndTimestampof all (grouped) rows.maxName()Adds a result columnMaxNameto the query, that contains the maximum value of the fieldNameof all (grouped) rows.Adds a result columnMaxOwnerDisplayNameto the query, that contains the maximum value of the fieldOwnerDisplayNameof all (grouped) rows.Adds a result columnMaxOwnerNameto the query, that contains the maximum value of the fieldOwnerNameof all (grouped) rows.maxStage()Adds a result columnMaxStageto the query, that contains the maximum value of the fieldStageof all (grouped) rows.Adds a result columnMaxStartTimestampto the query, that contains the maximum value of the fieldStartTimestampof all (grouped) rows.Adds a result columnMaxWorkingTimeto the query, that contains the maximum value of the fieldWorkingTimeof all (grouped) rows.Adds a result columnMinBusinessCalendarto the query, that contains the minimum value of the fieldBusinessCalendarof all (grouped) rows.Adds a result columnMinBusinessRuntimeto the query, that contains the minimum value of the fieldBusinessRuntimeof all (grouped) rows.Adds a result columnMinCaseIdto the query, that contains the minimum value of the fieldCaseIdof all (grouped) rows.Adds a result columnMinCategoryto the query, that contains the minimum value of the fieldCategoryof all (grouped) rows.Adds a result columnMinCreatorUserDisplayNameto the query, that contains the minimum value of the fieldCreatorUserDisplayNameof all (grouped) rows.Adds a result columnMinCreatorUserNameto the query, that contains the minimum value of the fieldCreatorUserNameof all (grouped) rows.Adds a result columnMinEndTimestampto the query, that contains the minimum value of the fieldEndTimestampof all (grouped) rows.minName()Adds a result columnMinNameto the query, that contains the minimum value of the fieldNameof all (grouped) rows.Adds a result columnMinOwnerDisplayNameto the query, that contains the minimum value of the fieldOwnerDisplayNameof all (grouped) rows.Adds a result columnMinOwnerNameto the query, that contains the minimum value of the fieldOwnerNameof all (grouped) rows.minStage()Adds a result columnMinStageto the query, that contains the minimum value of the fieldStageof all (grouped) rows.Adds a result columnMinStartTimestampto the query, that contains the minimum value of the fieldStartTimestampof all (grouped) rows.Adds a result columnMinWorkingTimeto the query, that contains the minimum value of the fieldWorkingTimeof all (grouped) rows.Adds a result columnSumBusinessRuntimeto the query, that contains the sum of the fieldBusinessRuntimeof all (grouped) rows.Adds a result columnSumWorkingTimeto the query, that contains the sum of the fieldWorkingTimeof all (grouped) rows.
-
Method Details
-
countRows
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
Countto the query, that contains the number of (grouped) rows.SQL part:
COUNT(*) AS Count- Specified by:
countRowsin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minCaseId
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinCaseIdto the query, that contains the minimum value of the fieldCaseIdof all (grouped) rows.SQL part:
MIN(CaseId) AS MinCaseId- Specified by:
minCaseIdin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxCaseId
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxCaseIdto the query, that contains the maximum value of the fieldCaseIdof all (grouped) rows.SQL part:
MAX(CaseId) AS MaxCaseId- Specified by:
maxCaseIdin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minCreatorUserName
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinCreatorUserNameto the query, that contains the minimum value of the fieldCreatorUserNameof all (grouped) rows.SQL part:
MIN(CreatorUserName) AS MinCreatorUserNameThis is a virtual column. It contains the same value as the column
Nameof the referencedCreator.- Specified by:
minCreatorUserNamein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxCreatorUserName
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxCreatorUserNameto the query, that contains the maximum value of the fieldCreatorUserNameof all (grouped) rows.SQL part:
MAX(CreatorUserName) AS MaxCreatorUserNameThis is a virtual column. It contains the same value as the column
Nameof the referencedCreator.- Specified by:
maxCreatorUserNamein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minCreatorUserDisplayName
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinCreatorUserDisplayNameto the query, that contains the minimum value of the fieldCreatorUserDisplayNameof all (grouped) rows.SQL part:
MIN(CreatorUserDisplayName) AS MinCreatorUserDisplayNameThis is a virtual column. It contains the same value as the column
DisplayNameof the referencedCreator.- Specified by:
minCreatorUserDisplayNamein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxCreatorUserDisplayName
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxCreatorUserDisplayNameto the query, that contains the maximum value of the fieldCreatorUserDisplayNameof all (grouped) rows.SQL part:
MAX(CreatorUserDisplayName) AS MaxCreatorUserDisplayNameThis is a virtual column. It contains the same value as the column
DisplayNameof the referencedCreator.- Specified by:
maxCreatorUserDisplayNamein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minName
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinNameto the query, that contains the minimum value of the fieldNameof all (grouped) rows.SQL part:
MIN(Name) AS MinNameThis is a virtual column. It contains the same value as the column
Nameof the referencedCaseLocalized.- Specified by:
minNamein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxName
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxNameto the query, that contains the maximum value of the fieldNameof all (grouped) rows.SQL part:
MAX(Name) AS MaxNameThis is a virtual column. It contains the same value as the column
Nameof the referencedCaseLocalized.- Specified by:
maxNamein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
avgStartTimestamp
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
AvgStartTimestampto the query, that contains the average of the fieldStartTimestampof all (grouped) rows.SQL part:
AVG(StartTimestamp) AS AvgStartTimestamp- Specified by:
avgStartTimestampin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minStartTimestamp
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinStartTimestampto the query, that contains the minimum value of the fieldStartTimestampof all (grouped) rows.SQL part:
MIN(StartTimestamp) AS MinStartTimestamp- Specified by:
minStartTimestampin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxStartTimestamp
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxStartTimestampto the query, that contains the maximum value of the fieldStartTimestampof all (grouped) rows.SQL part:
MAX(StartTimestamp) AS MaxStartTimestamp- Specified by:
maxStartTimestampin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
avgEndTimestamp
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
AvgEndTimestampto the query, that contains the average of the fieldEndTimestampof all (grouped) rows.SQL part:
AVG(EndTimestamp) AS AvgEndTimestamp- Specified by:
avgEndTimestampin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minEndTimestamp
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinEndTimestampto the query, that contains the minimum value of the fieldEndTimestampof all (grouped) rows.SQL part:
MIN(EndTimestamp) AS MinEndTimestamp- Specified by:
minEndTimestampin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxEndTimestamp
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxEndTimestampto the query, that contains the maximum value of the fieldEndTimestampof all (grouped) rows.SQL part:
MAX(EndTimestamp) AS MaxEndTimestamp- Specified by:
maxEndTimestampin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minBusinessCalendar
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinBusinessCalendarto the query, that contains the minimum value of the fieldBusinessCalendarof all (grouped) rows.SQL part:
MIN(BusinessCalendar) AS MinBusinessCalendar- Specified by:
minBusinessCalendarin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxBusinessCalendar
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxBusinessCalendarto the query, that contains the maximum value of the fieldBusinessCalendarof all (grouped) rows.SQL part:
MAX(BusinessCalendar) AS MaxBusinessCalendar- Specified by:
maxBusinessCalendarin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
sumWorkingTime
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
SumWorkingTimeto the query, that contains the sum of the fieldWorkingTimeof all (grouped) rows.SQL part:
SUM(WorkingTime) AS SumWorkingTime- Specified by:
sumWorkingTimein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
avgWorkingTime
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
AvgWorkingTimeto the query, that contains the average of the fieldWorkingTimeof all (grouped) rows.SQL part:
AVG(WorkingTime) AS AvgWorkingTime- Specified by:
avgWorkingTimein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minWorkingTime
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinWorkingTimeto the query, that contains the minimum value of the fieldWorkingTimeof all (grouped) rows.SQL part:
MIN(WorkingTime) AS MinWorkingTime- Specified by:
minWorkingTimein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxWorkingTime
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxWorkingTimeto the query, that contains the maximum value of the fieldWorkingTimeof all (grouped) rows.SQL part:
MAX(WorkingTime) AS MaxWorkingTime- Specified by:
maxWorkingTimein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
sumBusinessRuntime
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
SumBusinessRuntimeto the query, that contains the sum of the fieldBusinessRuntimeof all (grouped) rows.SQL part:
SUM(BusinessRuntime) AS SumBusinessRuntime- Specified by:
sumBusinessRuntimein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
avgBusinessRuntime
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
AvgBusinessRuntimeto the query, that contains the average of the fieldBusinessRuntimeof all (grouped) rows.SQL part:
AVG(BusinessRuntime) AS AvgBusinessRuntime- Specified by:
avgBusinessRuntimein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minBusinessRuntime
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinBusinessRuntimeto the query, that contains the minimum value of the fieldBusinessRuntimeof all (grouped) rows.SQL part:
MIN(BusinessRuntime) AS MinBusinessRuntime- Specified by:
minBusinessRuntimein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxBusinessRuntime
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxBusinessRuntimeto the query, that contains the maximum value of the fieldBusinessRuntimeof all (grouped) rows.SQL part:
MAX(BusinessRuntime) AS MaxBusinessRuntime- Specified by:
maxBusinessRuntimein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minStage
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinStageto the query, that contains the minimum value of the fieldStageof all (grouped) rows.SQL part:
MIN(Stage) AS MinStage- Specified by:
minStagein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxStage
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxStageto the query, that contains the maximum value of the fieldStageof all (grouped) rows.SQL part:
MAX(Stage) AS MaxStage- Specified by:
maxStagein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minOwnerName
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinOwnerNameto the query, that contains the minimum value of the fieldOwnerNameof all (grouped) rows.SQL part:
MIN(OwnerName) AS MinOwnerNameThis is a virtual column. It contains the same value as the column
MemberNameof the referencedOwner.- Specified by:
minOwnerNamein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxOwnerName
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxOwnerNameto the query, that contains the maximum value of the fieldOwnerNameof all (grouped) rows.SQL part:
MAX(OwnerName) AS MaxOwnerNameThis is a virtual column. It contains the same value as the column
MemberNameof the referencedOwner.- Specified by:
maxOwnerNamein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minOwnerDisplayName
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinOwnerDisplayNameto the query, that contains the minimum value of the fieldOwnerDisplayNameof all (grouped) rows.SQL part:
MIN(OwnerDisplayName) AS MinOwnerDisplayNameThis is a virtual column. It contains the same value as the column
DisplayNameof the referencedOwner.- Specified by:
minOwnerDisplayNamein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxOwnerDisplayName
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxOwnerDisplayNameto the query, that contains the maximum value of the fieldOwnerDisplayNameof all (grouped) rows.SQL part:
MAX(OwnerDisplayName) AS MaxOwnerDisplayNameThis is a virtual column. It contains the same value as the column
DisplayNameof the referencedOwner.- Specified by:
maxOwnerDisplayNamein interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
minCategory
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MinCategoryto the query, that contains the minimum value of the fieldCategoryof all (grouped) rows.SQL part:
MIN(Category) AS MinCategory- Specified by:
minCategoryin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
maxCategory
Description copied from interface:CaseQuery.IAggregationQueryAdds a result column
MaxCategoryto the query, that contains the maximum value of the fieldCategoryof all (grouped) rows.SQL part:
MAX(Category) AS MaxCategory- Specified by:
maxCategoryin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
customField
Description copied from interface:CaseQuery.IAggregationQueryAdds a result custom field to the query. Type and name are specified during further query composition.
- Specified by:
customFieldin interfaceCaseQuery.IAggregationQuery- Returns:
- query for further composition
- API:
- This public API is available in Java.
-