public interface TaskDao
任务信息持久层接口
2020-02-24 17:42
| 限定符和类型 | 方法和说明 |
|---|---|
int |
add(CommandTask commandTask)
增加任务信息
|
CommandTask |
get(String taskId)
通过id查询任务信息
|
Collection<CommandTask> |
getAll()
查询全部任务信息
|
boolean |
isHave(String taskId)
判断是否存在某个ID
|
int |
remove(String taskId)
删除 任务id 对应的任务信息
|
int |
removeAll()
删除全部任务信息
|
CommandTask get(String taskId)
taskId - 任务idCollection<CommandTask> getAll()
int add(CommandTask commandTask)
commandTask - 任务信息实体int remove(String taskId)
taskId - 任务idint removeAll()
boolean isHave(String taskId)
taskId - 任务idCopyright © 2021. All rights reserved.