@Named public class MaintenanceDao extends Object
| Constructor and Description |
|---|
MaintenanceDao(SQLVariants sqlVariants,
JdbcTemplate jdbcTemplate,
NamedParameterJdbcTemplate nflowNamedParameterJdbcTemplate) |
| Modifier and Type | Method and Description |
|---|---|
int |
archiveWorkflows(Collection<Long> workflowIds) |
void |
deleteActionAndStateHistory(long workflowInstanceId,
org.joda.time.DateTime olderThan) |
int |
deleteWorkflows(TablePrefix table,
Collection<Long> workflowIds) |
List<Long> |
getOldWorkflowIds(TablePrefix table,
org.joda.time.DateTime before,
int maxWorkflows,
Set<String> workflowTypes) |
@Inject public MaintenanceDao(SQLVariants sqlVariants, JdbcTemplate jdbcTemplate, NamedParameterJdbcTemplate nflowNamedParameterJdbcTemplate)
public List<Long> getOldWorkflowIds(TablePrefix table, org.joda.time.DateTime before, int maxWorkflows, Set<String> workflowTypes)
@Transactional public int archiveWorkflows(Collection<Long> workflowIds)
@Transactional public int deleteWorkflows(TablePrefix table, Collection<Long> workflowIds)
@Transactional public void deleteActionAndStateHistory(long workflowInstanceId, org.joda.time.DateTime olderThan)
Copyright © 2014–2020 Nitor Creations. All rights reserved.