KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > pim > business > base > Task


1 package org.enhydra.pim.business.base;
2
3 import java.math.BigDecimal JavaDoc;
4 import org.enhydra.pim.business.api.*;
5
6 /**
7  * @author P.Djojic Apr 20, 2005 3:50:30 AM
8  *
9  * TODO Task
10  */

11 public class Task extends BasePimImpl implements TaskI , java.io.Serializable JavaDoc {
12
13     private String JavaDoc alarm_note = null;
14
15     private OwnerI owner = null;
16
17     private String JavaDoc note = null;
18
19     private java.sql.Date JavaDoc date_start = null;
20
21     private java.sql.Date JavaDoc date_stop = null;
22
23     private java.sql.Time JavaDoc time_start = null;
24
25     private java.sql.Time JavaDoc time_stop = null;
26
27     private boolean alarm = false;
28
29     private int priority = 0;
30
31     private int completion = 0;
32
33     private int repaeat_type = 0;
34
35     private int repaeat_count = 0;
36
37     /**
38      * @param alarm_note
39      * @param user
40      * @param note
41      * @param date_start
42      * @param date_stop
43      * @param time_start
44      * @param time_stop
45      * @param alarm
46      * @param priority
47      * @param completion
48      * @param repaeat_type
49      * @param repaeat_count
50      */

51     public Task(String JavaDoc alarm_note, OwnerI owner, String JavaDoc note, java.sql.Date JavaDoc date_start, java.sql.Date JavaDoc date_stop,
52                     java.sql.Time JavaDoc time_start, java.sql.Time JavaDoc time_stop, boolean alarm, int priority, int completion,
53                     int repaeat_type, int repaeat_count) {
54         super(null);
55         this.alarm_note = alarm_note;
56         this.owner = owner;
57         this.note = note;
58         this.date_start = date_start;
59         this.date_stop = date_stop;
60         this.time_start = time_start;
61         this.time_stop = time_stop;
62         this.alarm = alarm;
63         this.priority = priority;
64         this.completion = completion;
65         this.repaeat_type = repaeat_type;
66         this.repaeat_count = repaeat_count;
67     }
68
69     /**
70      * @param handle
71      * @param alarm_note
72      * @param user
73      * @param note
74      * @param date_start
75      * @param date_stop
76      * @param time_start
77      * @param time_stop
78      * @param alarm
79      * @param priority
80      * @param completion
81      * @param repaeat_type
82      * @param repaeat_count
83      */

84     public Task(BigDecimal JavaDoc handle, String JavaDoc alarm_note, OwnerI owner, String JavaDoc note, java.sql.Date JavaDoc date_start,
85                     java.sql.Date JavaDoc date_stop, java.sql.Time JavaDoc time_start, java.sql.Time JavaDoc time_stop, boolean alarm,
86                     int priority, int completion, int repaeat_type, int repaeat_count) {
87         super(null);
88         this.alarm_note = alarm_note;
89         this.owner = owner;
90         this.note = note;
91         this.date_start = date_start;
92         this.date_stop = date_stop;
93         this.time_start = time_start;
94         this.time_stop = time_stop;
95         this.alarm = alarm;
96         this.priority = priority;
97         this.completion = completion;
98         this.repaeat_type = repaeat_type;
99         this.repaeat_count = repaeat_count;
100     }
101
102     public void clean() {
103         super.clean();
104         this.alarm_note = null;
105         this.owner = null;
106         this.note = null;
107         this.date_start = null;
108         this.date_stop = null;
109         this.time_start = null;
110         this.time_stop = null;
111         this.alarm = false;
112         this.priority = 0;
113         this.completion = 0;
114         this.repaeat_type = 0;
115         this.repaeat_count = 0;
116
117     }
118
119     /**
120      * Sets Alarm_note.
121      *
122      * @param _alarm_note
123      * new value.
124      */

125     public void setAlarm_note(String JavaDoc _alarm_note) {
126         alarm_note = _alarm_note;
127     }
128
129     /**
130      * Return value of Alarm_note.
131      *
132      * @return value of Alarm_note.
133      */

134     public String JavaDoc getAlarm_note() {
135         return alarm_note;
136     }
137
138     /**
139      * Sets Date_start.
140      *
141      * @param _date_start
142      * new value.
143      */

144     public void setDate_start(java.sql.Date JavaDoc _date_start) {
145         date_start = _date_start;
146     }
147
148     /**
149      * Return value of Date_start.
150      *
151      * @return value of Date_start.
152      */

153     public java.sql.Date JavaDoc getDate_start() {
154         return date_start;
155     }
156
157     /**
158      * Sets Date_stop.
159      *
160      * @param _date_stop
161      * new value.
162      */

163     public void setDate_stop(java.sql.Date JavaDoc _date_stop) {
164         date_stop = _date_stop;
165     }
166
167     /**
168      * Return value of Date_stop.
169      *
170      * @return value of Date_stop.
171      */

172     public java.sql.Date JavaDoc getDate_stop() {
173         return date_stop;
174     }
175
176     /**
177      * Sets Time_start.
178      *
179      * @param _time_start
180      * new value.
181      */

182     public void setTime_start(java.sql.Time JavaDoc _time_start) {
183         time_start = _time_start;
184     }
185
186     /**
187      * Return value of Time_start.
188      *
189      * @return value of Time_start.
190      */

191     public java.sql.Time JavaDoc getTime_start() {
192         return time_start;
193     }
194
195     /**
196      * Sets Time_stop.
197      *
198      * @param _time_stop
199      * new value.
200      */

201     public void setTime_stop(java.sql.Time JavaDoc _time_stop) {
202         time_stop = _time_stop;
203     }
204
205     /**
206      * Return value of Time_stop.
207      *
208      * @return value of Time_stop.
209      */

210     public java.sql.Time JavaDoc getTime_stop() {
211         return time_stop;
212     }
213
214     /**
215      * Sets Alarm.
216      *
217      * @param _alarm
218      * new value.
219      */

220     public void setAlarm(boolean _alarm) {
221         alarm = _alarm;
222     }
223
224     /**
225      * Return value of Alarm.
226      *
227      * @return value of Alarm.
228      */

229     public boolean getAlarm() {
230         return alarm;
231     }
232
233     /**
234      * Sets Priority.
235      *
236      * @param _priority
237      * new value.
238      */

239     public void setPriority(int _priority) {
240         priority = _priority;
241     }
242
243     /**
244      * Return value of Priority.
245      *
246      * @return value of Priority.
247      */

248     public int getPriority() {
249         return priority;
250     }
251
252     /**
253      * Sets Completion.
254      *
255      * @param _completion
256      * new value.
257      */

258     public void setCompletion(int _completion) {
259         completion = _completion;
260     }
261
262     /**
263      * Return value of Completion.
264      *
265      * @return value of Completion.
266      */

267     public int getCompletion() {
268         return completion;
269     }
270
271     /**
272      * Sets Repaeat_type.
273      *
274      * @param _repaeat_type
275      * new value.
276      */

277     public void setRepaeat_type(int _repaeat_type) {
278         repaeat_type = _repaeat_type;
279     }
280
281     /**
282      * Return value of Repaeat_type.
283      *
284      * @return value of Repaeat_type.
285      */

286     public int getRepaeat_type() {
287         return repaeat_type;
288     }
289
290     /**
291      * Sets Repaeat_count.
292      *
293      * @param _repaeat_count
294      * new value.
295      */

296     public void setRepaeat_count(int _repaeat_count) {
297         repaeat_count = _repaeat_count;
298     }
299
300     /**
301      * Return value of Repaeat_count.
302      *
303      * @return value of Repaeat_count.
304      */

305     public int getRepaeat_count() {
306         return repaeat_count;
307     }
308
309     /**
310      * Sets Note.
311      *
312      * @param _note
313      * new value.
314      */

315     public void setNote(String JavaDoc _note) {
316         note = _note;
317     }
318
319     /**
320      * Return value of Note.
321      *
322      * @return value of Note.
323      */

324     public String JavaDoc getNote() {
325         return note;
326     }
327
328     /**
329      * Sets Owner.
330      *
331      * @param _owner
332      * new value.
333      */

334     public void setOwner(OwnerI _owner) {
335         this.owner = _owner;
336     }
337
338     /**
339      * Return value of Owner.
340      *
341      * @return value of Owner.
342      */

343     public OwnerI getOwner() {
344         return this.owner;
345     }
346
347 }
Popular Tags