Package org.camunda.bpm.engine.impl
Class CleanableHistoricDecisionInstanceReportImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<CleanableHistoricDecisionInstanceReport,CleanableHistoricDecisionInstanceReportResult>
-
- org.camunda.bpm.engine.impl.CleanableHistoricDecisionInstanceReportImpl
-
- All Implemented Interfaces:
Serializable
,CleanableHistoricDecisionInstanceReport
,Command<Object>
,Query<CleanableHistoricDecisionInstanceReport,CleanableHistoricDecisionInstanceReportResult>
public class CleanableHistoricDecisionInstanceReportImpl extends AbstractQuery<CleanableHistoricDecisionInstanceReport,CleanableHistoricDecisionInstanceReportResult> implements CleanableHistoricDecisionInstanceReport
- 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 Date
currentTimestamp
protected String[]
decisionDefinitionIdIn
protected String[]
decisionDefinitionKeyIn
protected boolean
isCompact
protected boolean
isHistoryCleanupStrategyRemovalTimeBased
protected boolean
isTenantIdSet
protected 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 CleanableHistoricDecisionInstanceReportImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CleanableHistoricDecisionInstanceReport
compact()
Only selects historic decision instances which have more than zero finished instances.CleanableHistoricDecisionInstanceReport
decisionDefinitionIdIn(String... decisionDefinitionIds)
Only takes historic decision instances into account for the given decision definition ids.CleanableHistoricDecisionInstanceReport
decisionDefinitionKeyIn(String... decisionDefinitionKeys)
Only takes historic decision instances into account for the given decision definition keys.long
executeCount(CommandContext commandContext)
List<CleanableHistoricDecisionInstanceReportResult>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.Date
getCurrentTimestamp()
String[]
getDecisionDefinitionIdIn()
String[]
getDecisionDefinitionKeyIn()
String[]
getTenantIdIn()
boolean
isCompact()
boolean
isHistoryCleanupStrategyRemovalTimeBased()
boolean
isTenantIdSet()
CleanableHistoricDecisionInstanceReport
orderByFinished()
Order by finished decision instances amount (needs to be followed byQuery.asc()
orQuery.desc()
).protected void
provideHistoryCleanupStrategy(CommandContext commandContext)
void
setCurrentTimestamp(Date currentTimestamp)
void
setDecisionDefinitionIdIn(String[] decisionDefinitionIdIn)
void
setDecisionDefinitionKeyIn(String[] decisionDefinitionKeyIn)
void
setTenantIdIn(String[] tenantIdIn)
CleanableHistoricDecisionInstanceReport
tenantIdIn(String... tenantIds)
Only select historic decision instances with one of the given tenant ids.CleanableHistoricDecisionInstanceReport
withoutTenantId()
Only selects historic decision 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
-
decisionDefinitionIdIn
protected String[] decisionDefinitionIdIn
-
decisionDefinitionKeyIn
protected String[] decisionDefinitionKeyIn
-
tenantIdIn
protected String[] tenantIdIn
-
isTenantIdSet
protected boolean isTenantIdSet
-
isCompact
protected boolean isCompact
-
currentTimestamp
protected Date currentTimestamp
-
isHistoryCleanupStrategyRemovalTimeBased
protected boolean isHistoryCleanupStrategyRemovalTimeBased
-
-
Constructor Detail
-
CleanableHistoricDecisionInstanceReportImpl
public CleanableHistoricDecisionInstanceReportImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
decisionDefinitionIdIn
public CleanableHistoricDecisionInstanceReport decisionDefinitionIdIn(String... decisionDefinitionIds)
Description copied from interface:CleanableHistoricDecisionInstanceReport
Only takes historic decision instances into account for the given decision definition ids.- Specified by:
decisionDefinitionIdIn
in interfaceCleanableHistoricDecisionInstanceReport
-
decisionDefinitionKeyIn
public CleanableHistoricDecisionInstanceReport decisionDefinitionKeyIn(String... decisionDefinitionKeys)
Description copied from interface:CleanableHistoricDecisionInstanceReport
Only takes historic decision instances into account for the given decision definition keys.- Specified by:
decisionDefinitionKeyIn
in interfaceCleanableHistoricDecisionInstanceReport
-
tenantIdIn
public CleanableHistoricDecisionInstanceReport tenantIdIn(String... tenantIds)
Description copied from interface:CleanableHistoricDecisionInstanceReport
Only select historic decision instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceCleanableHistoricDecisionInstanceReport
-
withoutTenantId
public CleanableHistoricDecisionInstanceReport withoutTenantId()
Description copied from interface:CleanableHistoricDecisionInstanceReport
Only selects historic decision instances which have no tenant id.- Specified by:
withoutTenantId
in interfaceCleanableHistoricDecisionInstanceReport
-
compact
public CleanableHistoricDecisionInstanceReport compact()
Description copied from interface:CleanableHistoricDecisionInstanceReport
Only selects historic decision instances which have more than zero finished instances.- Specified by:
compact
in interfaceCleanableHistoricDecisionInstanceReport
-
orderByFinished
public CleanableHistoricDecisionInstanceReport orderByFinished()
Description copied from interface:CleanableHistoricDecisionInstanceReport
Order by finished decision instances amount (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByFinished
in interfaceCleanableHistoricDecisionInstanceReport
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<CleanableHistoricDecisionInstanceReport,CleanableHistoricDecisionInstanceReportResult>
-
executeList
public List<CleanableHistoricDecisionInstanceReportResult> 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<CleanableHistoricDecisionInstanceReport,CleanableHistoricDecisionInstanceReportResult>
page
- used if the results must be paged. If null, no paging will be applied.
-
getDecisionDefinitionIdIn
public String[] getDecisionDefinitionIdIn()
-
setDecisionDefinitionIdIn
public void setDecisionDefinitionIdIn(String[] decisionDefinitionIdIn)
-
getDecisionDefinitionKeyIn
public String[] getDecisionDefinitionKeyIn()
-
setDecisionDefinitionKeyIn
public void setDecisionDefinitionKeyIn(String[] decisionDefinitionKeyIn)
-
getCurrentTimestamp
public Date getCurrentTimestamp()
-
setCurrentTimestamp
public void setCurrentTimestamp(Date currentTimestamp)
-
getTenantIdIn
public String[] getTenantIdIn()
-
setTenantIdIn
public void setTenantIdIn(String[] tenantIdIn)
-
isTenantIdSet
public boolean isTenantIdSet()
-
isCompact
public boolean isCompact()
-
provideHistoryCleanupStrategy
protected void provideHistoryCleanupStrategy(CommandContext commandContext)
-
isHistoryCleanupStrategyRemovalTimeBased
public boolean isHistoryCleanupStrategyRemovalTimeBased()
-
-