Project

General

Profile

« Previous | Next » 

Revision 36841

Added by Nikon Gasparis about 9 years ago

imported updated from trunk rev 36836

View differences:

JobsDAO.java
5 5

  
6 6
import eu.dnetlib.domain.functionality.validator.StoredJob;
7 7
import eu.dnetlib.validator.commons.dao.DAO;
8
import eu.dnetlib.validator.commons.dao.DaoException;
8 9
import eu.dnetlib.validator.commons.dao.rules.RuleStatus;
9 10

  
10 11
public interface JobsDAO extends DAO<StoredJob> {
11 12

  
12
	public int deleteUncompletedJobs();
13 13
	
14
	public int deleteOld(String date, String period, String jobType);
14
	public int deleteOld(String date, String period, String jobType) throws DaoException;
15 15

  
16 16
	public int setJobFinished(int jobId,
17 17
			Map<String, Map<Integer, RuleStatus>> scoreMapPerGroupBy,
18
			String error, Boolean failed, int objsValidated, String validationType);
19
	public void setTotalJobFinished(int jobId, String error, Boolean failed);
18
			String error, Boolean failed, int objsValidated, String validationType) throws DaoException;
19
	public void setTotalJobFinished(int jobId, String error, Boolean failed) throws DaoException;
20 20

  
21
	public void setStatus(int jobId, String status, int recordsTested, String validationType);
21
	public void setStatus(int jobId, String status, int recordsTested, String validationType) throws DaoException;
22 22
	
23
	public List<StoredJob> getUncompletedJobs();
23
	public List<StoredJob> getJobs(String userName, String jobType, Integer offset, Integer limit, String dateFrom, String dateTo) throws DaoException;
24 24
	
25
	public List<StoredJob> getJobs(String userName, String jobType, Integer offset, Integer limit, String dateFrom, String dateTo);
26
	
27
	public int getJobsTotalNumber(String userName, String jobType);
25
	public int getJobsTotalNumber(String userName, String jobType) throws DaoException;
28 26

  
29
	public StoredJob getJobSummary(int jobId, String groupby);
27
	public StoredJob getJobSummary(int jobId, String groupby) throws DaoException;
28

  
29
	//TODO update
30
	public List<StoredJob> getUncompletedJobs() throws DaoException;
30 31
	
31
	public void importOldJobs();
32
	public int deleteUncompletedJobs() throws DaoException;
32 33
	
34
	
35
	public void importOldJobs() throws DaoException;
36
	
33 37
	/*
34 38
	public Map<String, List<StoredJob>> getJobsOfUserSplitted(String userName);
35 39

  

Also available in: Unified diff