package com.xxl.job.admin.dao;

import java.util.Date;
import java.util.List;

import com.xxl.job.admin.core.model.XxlJobLog;

/**
 * job log
 * @author xuxueli 2016-1-12 18:03:06
 */
public interface IXxlJobLogDao {
	
	public List<XxlJobLog> pageList(int offset, int pagesize, String jobGroup, String jobName, Date triggerTimeStart, Date triggerTimeEnd);
	public int pageListCount(int offset, int pagesize, String jobGroup, String jobName, Date triggerTimeStart, Date triggerTimeEnd);
	
	public XxlJobLog load(int id);
	public XxlJobLog loadByGroupAndName(String jobGroup, String jobName);
	
	public int save(XxlJobLog xxlJobLog);
	public int updateTriggerInfo(XxlJobLog xxlJobLog);
	public int updateHandleInfo(XxlJobLog xxlJobLog);
	
	public int delete(String jobGroup, String jobName);
	
}
