com.github.kfcfans.oms.worker.persistence.TaskDAO Maven / Gradle / Ivy
package com.github.kfcfans.oms.worker.persistence;
import com.github.kfcfans.oms.worker.core.processor.TaskResult;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* 任务持久化接口
*
* @author tjq
* @since 2020/3/17
*/
public interface TaskDAO {
/**
* 初始化任务表
*/
void initTable() throws Exception;
/**
* 插入任务数据
*/
boolean save(TaskDO task) throws SQLException;
boolean batchSave(Collection tasks) throws SQLException;
boolean simpleDelete(SimpleTaskQuery condition) throws SQLException;
List simpleQuery(SimpleTaskQuery query) throws SQLException;
List