Project

General

Profile

« Previous | Next » 

Revision 4971

Added by daigle almost 15 years ago

Beef up comments

View differences:

ScheduledJobDAO.java
1 1
/**
2 2
 *  '$RCSfile$'
3
 *    Purpose: A Class that holds the data from the scheduled_task 
3
 *    Purpose: A Class that holds the data from the scheduled_job 
4 4
 *             table in the database. 
5 5
 *  Copyright: 2009 Regents of the University of California and the
6 6
 *             National Center for Ecological Analysis and Synthesis
......
34 34

  
35 35
public class ScheduledJobDAO extends BaseDAO {
36 36
	
37
	
38
	public static String SECONDLY = "secondly";
39
	public static String MINUTELY = "minutely";
40
	public static String HOURLY = "hourly";
41
	public static String DAILY = "daily";
42
	public static String WEEKLY = "weekly";
37
	public static String SECONDLY = "s";
38
	public static String MINUTELY = "m";
39
	public static String HOURLY = "h";
40
	public static String DAILY = "d";
41
	public static String WEEKLY = "w";
43 42

  
44 43
	private String _name;
45 44
	private String _triggerName;
......
50 49
	private String _intervalUnit;
51 50
	private HashMap<String, ScheduledJobParamDAO> _jobParams = new HashMap<String, ScheduledJobParamDAO>();
52 51
	
52
	// get the name
53 53
	public String getName() {
54 54
		return _name;
55 55
	}
56 56
	
57
	// set the name
57 58
	public void setName(String name) {
58 59
		_name = name;
59 60
	}
60 61
	
62
	// get the trigger name
61 63
	public String getTriggerName() {
62 64
		return _triggerName;
63 65
	}
64 66
	
67
	// set the trigger name
65 68
	public void setTriggerName(String triggerName) {
66 69
		_triggerName = triggerName;
67 70
	}
68 71
	
72
	// get the group name
69 73
	public String getGroupName() {
70 74
		return _groupName;
71 75
	}
72 76
	
77
	// set the group name
73 78
	public void setGroupName(String groupName) {
74 79
		_groupName = groupName;
75 80
	}
76 81
	
82
	// get the class name
77 83
	public String getClassName() {
78 84
		return _className;
79 85
	}
80 86
	
87
	// set the class name
81 88
	public void setClassName(String className) {
82 89
		_className = className;
83 90
	}
84 91
	
92
	// get the start time
85 93
	public Timestamp getStartTime() {
86 94
		return _startTime;
87 95
	}
88 96
	
97
	// set the start time
89 98
	public void setStartTime(Timestamp startTime) {
90 99
		_startTime = startTime;
91 100
	}
92 101
	
102
	// get the interval value
93 103
	public int getIntervalValue() {
94 104
		return _intervalValue;
95 105
	}
96 106
	
107
	// set the interval value
97 108
	public void setIntervalValue(int intervalValue) {
98 109
		_intervalValue = intervalValue;
99 110
	}
100 111
	
112
	// get the interval unit
101 113
	public String getIntervalUnit() {
102 114
		return _intervalUnit;
103 115
	}
104 116
	
117
	// set the interval unit
105 118
	public void setIntervalUnit(String intervalUnit) {
106 119
		_intervalUnit = intervalUnit;
107 120
	}
108 121
	
122
	// get the job param with the given key
109 123
	public ScheduledJobParamDAO getJobParam(String key) {
110 124
		return _jobParams.get(key);
111 125
	}
112 126
	
127
	// get all the job params for this job
113 128
	public HashMap<String, ScheduledJobParamDAO> getAllJobParams() {
114 129
		return _jobParams;
115 130
	}
116 131
	
132
	// add a job param to this job
117 133
	public void addJobParam(ScheduledJobParamDAO jobParamDAO) {
118 134
		_jobParams.put(jobParamDAO.getKey(), jobParamDAO);
119 135
	}

Also available in: Unified diff