1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.scheduler;
18
19 /***
20 * BaseJobEntry
21 *
22 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
23 * @version $Id: BaseJobEntry.java 516448 2007-03-09 16:25:47Z ate $
24 */
25 public abstract class BaseJobEntry
26 {
27 protected int jobId = 0;
28 protected int jobSecond = -1;
29 protected int jobMinute = -1;
30 protected int jobHour = -1;
31 protected int weekDay = -1;
32 protected int dayOfMonth = -1;
33 protected String task;
34 protected String email;
35
36 /***
37 * Get the JobId
38 *
39 * @return
40 */
41 public int getJobId()
42 {
43 return jobId;
44 }
45
46
47 /***
48 * Set the value of JobId
49 *
50 * @param v new value
51 */
52 public void setJobId(int v)
53 {
54 this.jobId = v;
55 }
56
57
58 /***
59 * Get the Second
60 *
61 * @return int
62 */
63 public int getSecond()
64 {
65 return jobSecond;
66 }
67
68
69 /***
70 * Set the value of Second
71 *
72 * @param v new value
73 */
74 public void setSecond(int v)
75 {
76 this.jobSecond = v;
77 }
78
79
80 /***
81 * Get the Minute
82 *
83 * @return int
84 */
85 public int getMinute()
86 {
87 return jobMinute;
88 }
89
90
91 /***
92 * Set the value of Minute
93 *
94 * @param v new value
95 */
96 public void setMinute(int v)
97 {
98 this.jobMinute = v;
99 }
100
101 /***
102 * Get the Hour
103 *
104 * @return int
105 */
106 public int getHour()
107 {
108 return jobHour;
109 }
110
111
112 /***
113 * Set the value of Hour
114 *
115 * @param v new value
116 */
117 public void setHour(int v)
118 {
119 this.jobHour = v;
120 }
121
122
123 /***
124 * Get the WeekDay
125 *
126 * @return int
127 */
128 public int getWeekDay()
129 {
130 return weekDay;
131 }
132
133 /***
134 * Set the value of WeekDay
135 *
136 * @param v new value
137 */
138 public void setWeekDay(int v)
139 {
140 this.weekDay = v;
141 }
142
143
144 /***
145 * Get the DayOfMonth
146 *
147 * @return int
148 */
149 public int getDayOfMonth()
150 {
151 return dayOfMonth;
152 }
153
154
155 /***
156 * Set the value of DayOfMonth
157 *
158 * @param v new value
159 */
160 public void setDayOfMonth(int v)
161 {
162 this.dayOfMonth = v;
163 }
164
165 /***
166 * Get the Task
167 *
168 * @return String
169 */
170 public String getTask()
171 {
172 return task;
173 }
174
175
176 /***
177 * Set the value of Task
178 *
179 * @param v new value
180 */
181 public void setTask(String v)
182 {
183 this.task = v;
184 }
185
186 /***
187 * Get the Email
188 *
189 * @return String
190 */
191 public String getEmail()
192 {
193 return email;
194 }
195
196
197 /***
198 * Set the value of Email
199 *
200 * @param v new value
201 */
202 public void setEmail(String v)
203 {
204 this.email = v;
205 }
206 }