public interface TaskDAO
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
batchSave(Collection<TaskDO> tasks) |
List<TaskResult> |
getAllTaskResult(Long instanceId,
Long subInstanceId)
查询所有子任务的执行结果 (为了性能特殊定制,主要是内存占用,如果使用 simpleQueryPlus,内存中需要同时存在3份数据 ?
|
void |
initTable()
初始化任务表
|
boolean |
save(TaskDO task)
插入任务数据
|
boolean |
simpleDelete(SimpleTaskQuery condition) |
List<TaskDO> |
simpleQuery(SimpleTaskQuery query) |
List<Map<String,Object>> |
simpleQueryPlus(SimpleTaskQuery query) |
boolean |
simpleUpdate(SimpleTaskQuery condition,
TaskDO updateField) |
boolean |
updateTaskStatus(Long instanceId,
String taskId,
int status,
long lastReportTime,
String result)
更新任务状态(result可能出现千奇百怪的字符,比如 ' ,只能特殊定制SQL直接写入)
|
boolean save(TaskDO task) throws SQLException
SQLExceptionboolean batchSave(Collection<TaskDO> tasks) throws SQLException
SQLExceptionboolean simpleDelete(SimpleTaskQuery condition) throws SQLException
SQLExceptionList<TaskDO> simpleQuery(SimpleTaskQuery query) throws SQLException
SQLExceptionList<Map<String,Object>> simpleQueryPlus(SimpleTaskQuery query) throws SQLException
SQLExceptionboolean simpleUpdate(SimpleTaskQuery condition, TaskDO updateField) throws SQLException
SQLExceptionList<TaskResult> getAllTaskResult(Long instanceId, Long subInstanceId) throws SQLException
SQLExceptionboolean updateTaskStatus(Long instanceId, String taskId, int status, long lastReportTime, String result) throws SQLException
SQLExceptionCopyright © 2024. All rights reserved.