1
|
/**
|
2
|
* '$RCSfile$'
|
3
|
* Purpose: A Class that holds the data from the scheduled_task
|
4
|
* table in the database.
|
5
|
* Copyright: 2009 Regents of the University of California and the
|
6
|
* National Center for Ecological Analysis and Synthesis
|
7
|
* Authors: Michael Daigle
|
8
|
*
|
9
|
* '$Author: daigle $'
|
10
|
* '$Date: 2009-03-23 13:56:56 -0800 (Mon, 23 Mar 2009) $'
|
11
|
* '$Revision: 4854 $'
|
12
|
*
|
13
|
* This program is free software; you can redistribute it and/or modify
|
14
|
* it under the terms of the GNU General Public License as published by
|
15
|
* the Free Software Foundation; either version 2 of the License, or
|
16
|
* (at your option) any later version.
|
17
|
*
|
18
|
* This program is distributed in the hope that it will be useful,
|
19
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
* GNU General Public License for more details.
|
22
|
*
|
23
|
* You should have received a copy of the GNU General Public License
|
24
|
* along with this program; if not, write to the Free Software
|
25
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
26
|
*/
|
27
|
|
28
|
package edu.ucsb.nceas.metacat.scheduler;
|
29
|
|
30
|
import java.sql.Timestamp;
|
31
|
|
32
|
import edu.ucsb.nceas.shared.BaseDAO;
|
33
|
|
34
|
public class ScheduledJobDAO extends BaseDAO {
|
35
|
|
36
|
|
37
|
public static String SECONDLY = "secondly";
|
38
|
public static String MINUTELY = "minutely";
|
39
|
public static String HOURLY = "hourly";
|
40
|
public static String DAILY = "daily";
|
41
|
public static String WEEKLY = "weekly";
|
42
|
|
43
|
private String _name;
|
44
|
private String _triggerName;
|
45
|
private String _groupName;
|
46
|
private String _className;
|
47
|
private Timestamp _startTime;
|
48
|
private int _interval;
|
49
|
|
50
|
public String getName() {
|
51
|
return _name;
|
52
|
}
|
53
|
|
54
|
public void setName(String name) {
|
55
|
_name = name;
|
56
|
}
|
57
|
|
58
|
public String getTriggerName() {
|
59
|
return _triggerName;
|
60
|
}
|
61
|
|
62
|
public void setTriggerName(String triggerName) {
|
63
|
_triggerName = triggerName;
|
64
|
}
|
65
|
|
66
|
public String getGroupName() {
|
67
|
return _groupName;
|
68
|
}
|
69
|
|
70
|
public void setGroupName(String groupName) {
|
71
|
_groupName = groupName;
|
72
|
}
|
73
|
|
74
|
public String getClassName() {
|
75
|
return _className;
|
76
|
}
|
77
|
|
78
|
public void setClassName(String className) {
|
79
|
_className = className;
|
80
|
}
|
81
|
|
82
|
public Timestamp getStartTime() {
|
83
|
return _startTime;
|
84
|
}
|
85
|
|
86
|
public void setStartTime(Timestamp startTime) {
|
87
|
_startTime = startTime;
|
88
|
}
|
89
|
|
90
|
public int getInterval() {
|
91
|
return _interval;
|
92
|
}
|
93
|
|
94
|
public void setInterval(int interval) {
|
95
|
_interval = interval;
|
96
|
}
|
97
|
}
|