public class CleanableHistoricBatchReportImpl extends AbstractQuery<CleanableHistoricBatchReport,CleanableHistoricBatchReportResult> implements CleanableHistoricBatchReport
AbstractQuery.ResultType
Modifier and Type | Field and Description |
---|---|
protected Date |
currentTimestamp |
protected boolean |
isHistoryCleanupStrategyRemovalTimeBased |
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
Constructor and Description |
---|
CleanableHistoricBatchReportImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
protected void |
addBatchOperationsWithoutTTL(Map<String,Integer> batchOperations) |
long |
executeCount(CommandContext commandContext) |
List<CleanableHistoricBatchReportResult> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
Date |
getCurrentTimestamp() |
boolean |
isHistoryCleanupStrategyRemovalTimeBased() |
CleanableHistoricBatchReport |
orderByFinishedBatchOperation()
Order by finished batch operations amount (needs to be followed by
Query.asc() or Query.desc() ). |
protected void |
provideHistoryCleanupStrategy(CommandContext commandContext) |
void |
setCurrentTimestamp(Date currentTimestamp) |
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unboundedResultList, validate, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
protected Date currentTimestamp
protected boolean isHistoryCleanupStrategyRemovalTimeBased
public CleanableHistoricBatchReportImpl(CommandExecutor commandExecutor)
public CleanableHistoricBatchReport orderByFinishedBatchOperation()
CleanableHistoricBatchReport
Query.asc()
or Query.desc()
).orderByFinishedBatchOperation
in interface CleanableHistoricBatchReport
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<CleanableHistoricBatchReport,CleanableHistoricBatchReportResult>
public List<CleanableHistoricBatchReportResult> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<CleanableHistoricBatchReport,CleanableHistoricBatchReportResult>
page
- used if the results must be paged. If null, no paging will be applied.protected void addBatchOperationsWithoutTTL(Map<String,Integer> batchOperations)
public Date getCurrentTimestamp()
public void setCurrentTimestamp(Date currentTimestamp)
protected void provideHistoryCleanupStrategy(CommandContext commandContext)
public boolean isHistoryCleanupStrategyRemovalTimeBased()
Copyright © 2022. All rights reserved.