Package org.camunda.bpm.engine.impl
Class CleanableHistoricCaseInstanceReportImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<CleanableHistoricCaseInstanceReport,CleanableHistoricCaseInstanceReportResult>
-
- org.camunda.bpm.engine.impl.CleanableHistoricCaseInstanceReportImpl
-
- All Implemented Interfaces:
java.io.Serializable
,CleanableHistoricCaseInstanceReport
,Command<java.lang.Object>
,Query<CleanableHistoricCaseInstanceReport,CleanableHistoricCaseInstanceReportResult>
public class CleanableHistoricCaseInstanceReportImpl extends AbstractQuery<CleanableHistoricCaseInstanceReport,CleanableHistoricCaseInstanceReportResult> implements CleanableHistoricCaseInstanceReport
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]
caseDefinitionIdIn
protected java.lang.String[]
caseDefinitionKeyIn
protected java.util.Date
currentTimestamp
protected boolean
isCompact
protected boolean
isTenantIdSet
protected java.lang.String[]
tenantIdIn
-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
-
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
-
Constructor Summary
Constructors Constructor Description CleanableHistoricCaseInstanceReportImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CleanableHistoricCaseInstanceReport
caseDefinitionIdIn(java.lang.String... caseDefinitionIds)
Only takes historic case instances into account for the given case definition ids.CleanableHistoricCaseInstanceReport
caseDefinitionKeyIn(java.lang.String... caseDefinitionKeys)
Only takes historic case instances into account for the given case definition keys.CleanableHistoricCaseInstanceReport
compact()
Only selects historic case instances which have more than zero finished instances.long
executeCount(CommandContext commandContext)
java.util.List<CleanableHistoricCaseInstanceReportResult>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.java.lang.String[]
getCaseDefinitionIdIn()
java.lang.String[]
getCaseDefinitionKeyIn()
java.util.Date
getCurrentTimestamp()
java.lang.String[]
getTenantIdIn()
boolean
isCompact()
boolean
isTenantIdSet()
CleanableHistoricCaseInstanceReport
orderByFinished()
Order by finished case instances amount (needs to be followed byQuery.asc()
orQuery.desc()
).void
setCaseDefinitionIdIn(java.lang.String[] caseDefinitionIdIn)
void
setCaseDefinitionKeyIn(java.lang.String[] caseDefinitionKeyIn)
void
setCurrentTimestamp(java.util.Date currentTimestamp)
void
setTenantIdIn(java.lang.String[] tenantIdIn)
CleanableHistoricCaseInstanceReport
tenantIdIn(java.lang.String... tenantIds)
Only select historic case instances with one of the given tenant ids.CleanableHistoricCaseInstanceReport
withoutTenantId()
Only selects historic case instances which have no tenant id.-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validate
-
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Field Detail
-
caseDefinitionIdIn
protected java.lang.String[] caseDefinitionIdIn
-
caseDefinitionKeyIn
protected java.lang.String[] caseDefinitionKeyIn
-
tenantIdIn
protected java.lang.String[] tenantIdIn
-
isTenantIdSet
protected boolean isTenantIdSet
-
isCompact
protected boolean isCompact
-
currentTimestamp
protected java.util.Date currentTimestamp
-
-
Constructor Detail
-
CleanableHistoricCaseInstanceReportImpl
public CleanableHistoricCaseInstanceReportImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
caseDefinitionIdIn
public CleanableHistoricCaseInstanceReport caseDefinitionIdIn(java.lang.String... caseDefinitionIds)
Description copied from interface:CleanableHistoricCaseInstanceReport
Only takes historic case instances into account for the given case definition ids.- Specified by:
caseDefinitionIdIn
in interfaceCleanableHistoricCaseInstanceReport
-
caseDefinitionKeyIn
public CleanableHistoricCaseInstanceReport caseDefinitionKeyIn(java.lang.String... caseDefinitionKeys)
Description copied from interface:CleanableHistoricCaseInstanceReport
Only takes historic case instances into account for the given case definition keys.- Specified by:
caseDefinitionKeyIn
in interfaceCleanableHistoricCaseInstanceReport
-
tenantIdIn
public CleanableHistoricCaseInstanceReport tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:CleanableHistoricCaseInstanceReport
Only select historic case instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceCleanableHistoricCaseInstanceReport
-
withoutTenantId
public CleanableHistoricCaseInstanceReport withoutTenantId()
Description copied from interface:CleanableHistoricCaseInstanceReport
Only selects historic case instances which have no tenant id.- Specified by:
withoutTenantId
in interfaceCleanableHistoricCaseInstanceReport
-
compact
public CleanableHistoricCaseInstanceReport compact()
Description copied from interface:CleanableHistoricCaseInstanceReport
Only selects historic case instances which have more than zero finished instances.- Specified by:
compact
in interfaceCleanableHistoricCaseInstanceReport
-
orderByFinished
public CleanableHistoricCaseInstanceReport orderByFinished()
Description copied from interface:CleanableHistoricCaseInstanceReport
Order by finished case instances amount (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByFinished
in interfaceCleanableHistoricCaseInstanceReport
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<CleanableHistoricCaseInstanceReport,CleanableHistoricCaseInstanceReportResult>
-
executeList
public java.util.List<CleanableHistoricCaseInstanceReportResult> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<CleanableHistoricCaseInstanceReport,CleanableHistoricCaseInstanceReportResult>
page
- used if the results must be paged. If null, no paging will be applied.
-
getCaseDefinitionIdIn
public java.lang.String[] getCaseDefinitionIdIn()
-
setCaseDefinitionIdIn
public void setCaseDefinitionIdIn(java.lang.String[] caseDefinitionIdIn)
-
getCaseDefinitionKeyIn
public java.lang.String[] getCaseDefinitionKeyIn()
-
setCaseDefinitionKeyIn
public void setCaseDefinitionKeyIn(java.lang.String[] caseDefinitionKeyIn)
-
getCurrentTimestamp
public java.util.Date getCurrentTimestamp()
-
setCurrentTimestamp
public void setCurrentTimestamp(java.util.Date currentTimestamp)
-
getTenantIdIn
public java.lang.String[] getTenantIdIn()
-
setTenantIdIn
public void setTenantIdIn(java.lang.String[] tenantIdIn)
-
isTenantIdSet
public boolean isTenantIdSet()
-
isCompact
public boolean isCompact()
-
-