Package io.nflow.engine.internal.dao
Class MaintenanceDao
- java.lang.Object
-
- io.nflow.engine.internal.dao.MaintenanceDao
-
@Named public class MaintenanceDao extends Object
-
-
Constructor Summary
Constructors Constructor Description MaintenanceDao(SQLVariants sqlVariants, JdbcTemplate jdbcTemplate, ExecutorDao executorDao, NamedParameterJdbcTemplate nflowNamedParameterJdbcTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intarchiveWorkflows(Collection<Long> workflowIds)voiddeleteActionAndStateHistory(long workflowInstanceId, org.joda.time.DateTime olderThan)intdeleteWorkflows(TableType type, Collection<Long> workflowIds)List<Long>getOldWorkflowIds(TableType type, org.joda.time.DateTime before, int maxWorkflows, Set<String> workflowTypes)
-
-
-
Constructor Detail
-
MaintenanceDao
@Inject public MaintenanceDao(SQLVariants sqlVariants, JdbcTemplate jdbcTemplate, ExecutorDao executorDao, NamedParameterJdbcTemplate nflowNamedParameterJdbcTemplate)
-
-
Method Detail
-
getOldWorkflowIds
public List<Long> getOldWorkflowIds(TableType type, org.joda.time.DateTime before, int maxWorkflows, Set<String> workflowTypes)
-
archiveWorkflows
@Transactional public int archiveWorkflows(Collection<Long> workflowIds)
-
deleteWorkflows
@Transactional public int deleteWorkflows(TableType type, Collection<Long> workflowIds)
-
deleteActionAndStateHistory
@Transactional public void deleteActionAndStateHistory(long workflowInstanceId, org.joda.time.DateTime olderThan)
-
-