KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quartz > impl > jdbcjobstore > Constants


1 /*
2  * Copyright 2004-2005 OpenSymphony
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy
6  * of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * License for the specific language governing permissions and limitations
14  * under the License.
15  *
16  */

17
18 /*
19  * Previously Copyright (c) 2001-2004 James House
20  */

21
22 package org.quartz.impl.jdbcjobstore;
23
24 /**
25  * <p>
26  * This interface can be implemented by any <code>{@link
27  * org.quartz.impl.jdbcjobstore.DriverDelegate}</code>
28  * class that needs to use the constants contained herein.
29  * </p>
30  *
31  * @author <a HREF="mailto:jeff@binaryfeed.org">Jeffrey Wescott</a>
32  * @author James House
33  */

34 public interface Constants {
35
36     /*
37      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38      *
39      * Constants.
40      *
41      * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42      */

43
44     // Table names
45
String JavaDoc TABLE_JOB_DETAILS = "JOB_DETAILS";
46
47     String JavaDoc TABLE_TRIGGERS = "TRIGGERS";
48
49     String JavaDoc TABLE_SIMPLE_TRIGGERS = "SIMPLE_TRIGGERS";
50
51     String JavaDoc TABLE_CRON_TRIGGERS = "CRON_TRIGGERS";
52
53     String JavaDoc TABLE_BLOB_TRIGGERS = "BLOB_TRIGGERS";
54
55     String JavaDoc TABLE_FIRED_TRIGGERS = "FIRED_TRIGGERS";
56
57     String JavaDoc TABLE_JOB_LISTENERS = "JOB_LISTENERS";
58
59     String JavaDoc TABLE_TRIGGER_LISTENERS = "TRIGGER_LISTENERS";
60
61     String JavaDoc TABLE_CALENDARS = "CALENDARS";
62
63     String JavaDoc TABLE_PAUSED_TRIGGERS = "PAUSED_TRIGGER_GRPS";
64
65     String JavaDoc TABLE_LOCKS = "LOCKS";
66
67     String JavaDoc TABLE_SCHEDULER_STATE = "SCHEDULER_STATE";
68
69     // TABLE_JOB_DETAILS columns names
70
String JavaDoc COL_JOB_NAME = "JOB_NAME";
71
72     String JavaDoc COL_JOB_GROUP = "JOB_GROUP";
73
74     String JavaDoc COL_IS_DURABLE = "IS_DURABLE";
75
76     String JavaDoc COL_IS_VOLATILE = "IS_VOLATILE";
77
78     String JavaDoc COL_IS_STATEFUL = "IS_STATEFUL";
79
80     String JavaDoc COL_REQUESTS_RECOVERY = "REQUESTS_RECOVERY";
81
82     String JavaDoc COL_JOB_DATAMAP = "JOB_DATA";
83
84     String JavaDoc COL_JOB_CLASS = "JOB_CLASS_NAME";
85
86     String JavaDoc COL_DESCRIPTION = "DESCRIPTION";
87
88     // TABLE_JOB_LISTENERS columns names
89
String JavaDoc COL_JOB_LISTENER = "JOB_LISTENER";
90
91     // TABLE_TRIGGERS columns names
92
String JavaDoc COL_TRIGGER_NAME = "TRIGGER_NAME";
93
94     String JavaDoc COL_TRIGGER_GROUP = "TRIGGER_GROUP";
95
96     String JavaDoc COL_NEXT_FIRE_TIME = "NEXT_FIRE_TIME";
97
98     String JavaDoc COL_PREV_FIRE_TIME = "PREV_FIRE_TIME";
99
100     String JavaDoc COL_TRIGGER_STATE = "TRIGGER_STATE";
101
102     String JavaDoc COL_TRIGGER_TYPE = "TRIGGER_TYPE";
103
104     String JavaDoc COL_START_TIME = "START_TIME";
105
106     String JavaDoc COL_END_TIME = "END_TIME";
107
108     String JavaDoc COL_PRIORITY = "PRIORITY";
109
110     String JavaDoc COL_MISFIRE_INSTRUCTION = "MISFIRE_INSTR";
111
112     String JavaDoc ALIAS_COL_NEXT_FIRE_TIME = "ALIAS_NXT_FR_TM";
113
114     // TABLE_SIMPLE_TRIGGERS columns names
115
String JavaDoc COL_REPEAT_COUNT = "REPEAT_COUNT";
116
117     String JavaDoc COL_REPEAT_INTERVAL = "REPEAT_INTERVAL";
118
119     String JavaDoc COL_TIMES_TRIGGERED = "TIMES_TRIGGERED";
120
121     // TABLE_CRON_TRIGGERS columns names
122
String JavaDoc COL_CRON_EXPRESSION = "CRON_EXPRESSION";
123
124     // TABLE_BLOB_TRIGGERS columns names
125
String JavaDoc COL_BLOB = "BLOB_DATA";
126
127     String JavaDoc COL_TIME_ZONE_ID = "TIME_ZONE_ID";
128
129     // TABLE_TRIGGER_LISTENERS
130
String JavaDoc COL_TRIGGER_LISTENER = "TRIGGER_LISTENER";
131
132     // TABLE_FIRED_TRIGGERS columns names
133
String JavaDoc COL_INSTANCE_NAME = "INSTANCE_NAME";
134
135     String JavaDoc COL_FIRED_TIME = "FIRED_TIME";
136
137     String JavaDoc COL_ENTRY_ID = "ENTRY_ID";
138
139     String JavaDoc COL_ENTRY_STATE = "STATE";
140
141     // TABLE_CALENDARS columns names
142
String JavaDoc COL_CALENDAR_NAME = "CALENDAR_NAME";
143
144     String JavaDoc COL_CALENDAR = "CALENDAR";
145
146     // TABLE_LOCKS columns names
147
String JavaDoc COL_LOCK_NAME = "LOCK_NAME";
148
149     // TABLE_LOCKS columns names
150
String JavaDoc COL_LAST_CHECKIN_TIME = "LAST_CHECKIN_TIME";
151
152     String JavaDoc COL_CHECKIN_INTERVAL = "CHECKIN_INTERVAL";
153
154     // MISC CONSTANTS
155
String JavaDoc DEFAULT_TABLE_PREFIX = "QRTZ_";
156
157     // STATES
158
String JavaDoc STATE_WAITING = "WAITING";
159
160     String JavaDoc STATE_ACQUIRED = "ACQUIRED";
161
162     String JavaDoc STATE_EXECUTING = "EXECUTING";
163
164     String JavaDoc STATE_COMPLETE = "COMPLETE";
165
166     String JavaDoc STATE_BLOCKED = "BLOCKED";
167
168     String JavaDoc STATE_ERROR = "ERROR";
169
170     String JavaDoc STATE_PAUSED = "PAUSED";
171
172     String JavaDoc STATE_PAUSED_BLOCKED = "PAUSED_BLOCKED";
173
174     String JavaDoc STATE_DELETED = "DELETED";
175
176     /**
177      * @deprecated Whether a trigger has misfired is no longer a state, but
178      * rather now identified dynamically by whether the trigger's next fire
179      * time is more than the misfire threshold time in the past.
180      */

181     String JavaDoc STATE_MISFIRED = "MISFIRED";
182
183     String JavaDoc ALL_GROUPS_PAUSED = "_$_ALL_GROUPS_PAUSED_$_";
184
185     // TRIGGER TYPES
186
String JavaDoc TTYPE_SIMPLE = "SIMPLE";
187
188     String JavaDoc TTYPE_CRON = "CRON";
189
190     String JavaDoc TTYPE_BLOB = "BLOB";
191 }
192
193 // EOF
194
Popular Tags