KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jical > ICalendarVEvent


1 /*
2  *
3  * Created on August 3, 2002, 9:01 PM
4  *
5  * Stores an icalendar Time Zone as a java object.
6  * There can be more than one iCal time zone per Calendar.
7  * To make it easy, all times are recorded as GMT.
8  *
9  */

10
11 package org.jical;
12
13 /**
14  *
15  * @author sfg RFC 2445
16  * @author David Wellington
17  *
18  */

19
20 import java.io.ByteArrayInputStream JavaDoc;
21 import java.text.SimpleDateFormat JavaDoc;
22 import java.util.ArrayList JavaDoc;
23 import java.util.Calendar JavaDoc;
24 import java.util.Collection JavaDoc;
25 import java.util.Comparator JavaDoc;
26 import java.util.Date JavaDoc;
27 import java.util.GregorianCalendar JavaDoc;
28 import java.util.TimeZone JavaDoc;
29
30 import javax.xml.parsers.DocumentBuilder JavaDoc;
31 import javax.xml.parsers.DocumentBuilderFactory JavaDoc;
32
33 import org.w3c.dom.Document JavaDoc;
34 import org.w3c.dom.Node JavaDoc;
35 import org.w3c.dom.NodeList JavaDoc;
36
37 /**
38  * @hibernate.class
39  * table="ICALVEVENT"
40  * dynamic-update="false"
41  * dynamic-insert="false"
42  *
43  * @hibernate.discriminator
44  * column="class"
45  */

46
47 public class ICalendarVEvent implements Cloneable JavaDoc {
48
49     private static SimpleDateFormat JavaDoc localDateFormatter = new SimpleDateFormat JavaDoc("yyyyMMdd'T'HHmmss");
50     private static SimpleDateFormat JavaDoc formatter = new SimpleDateFormat JavaDoc("yyyyMMddHHmmss");
51     private static final SimpleDateFormat JavaDoc VEVENTformatter = new SimpleDateFormat JavaDoc("yyyyMMdd'T'HHmmss'Z'");
52
53
54     private Date JavaDoc dateStamp;
55     private String JavaDoc organizer;
56     private String JavaDoc organizerEmail;
57     private Date JavaDoc created;
58     private Date JavaDoc lastModified;
59     private int priority;
60     private String JavaDoc attach;
61     private String JavaDoc location;
62     private String JavaDoc percentComplete;
63     private String JavaDoc status;
64     private String JavaDoc comment;
65     private boolean recurrenceId;
66     private String JavaDoc url;
67     private String JavaDoc geo;
68     private float geoX;
69     private float geoY;
70     private String JavaDoc resources;
71     private String JavaDoc contact;
72     private String JavaDoc relatedTo;
73     private String JavaDoc requestStatus;
74     
75     private String JavaDoc id;
76         
77
78    /**
79     *
80     * @hibernate.id
81     * generator-class="uuid.hex"
82     * column="ID"
83     *
84     * @hibernate.column
85     * name="ID"
86     * sql-type="VARCHAR(255)"
87     *
88     */

89
90     public String JavaDoc getId()
91     {
92         return this.id;
93     }
94
95     public void setId(String JavaDoc id)
96     {
97         this.id = id;
98     }
99
100     private String JavaDoc uid;
101     
102    /**
103     *
104     * @hibernate.property
105     * column="UID"
106     *
107     * @hibernate.column
108     * name="uid"
109     * sql-type="VARCHAR(255)"
110     *
111     */

112
113     public String JavaDoc getUid()
114     {
115         return uid;
116     }
117
118     public void setUid(String JavaDoc uid)
119     {
120         this.uid = uid;
121     }
122
123     private String JavaDoc transparency;
124
125    /**
126     *
127     * @hibernate.property
128     * column="TRANSPARENCY"
129     *
130     * @hibernate.column
131     * name="transparency"
132     * sql-type="VARCHAR(255)"
133     *
134     */

135
136     public String JavaDoc getTransparency() {
137         return this.transparency;
138     }
139     
140     public void setTransparency(String JavaDoc transparency) {
141         this.transparency = transparency;
142     }
143     
144     private Date JavaDoc dateStart;
145     
146    /**
147     *
148     * @hibernate.property
149     * column="DATE_START"
150     *
151     * @hibernate.column
152     * name="dateStart"
153     * sql-type="TIMESTAMP"
154     *
155     */

156     
157     public Date JavaDoc getDateStart() {
158         return this.dateStart;
159     }
160     
161     public void setDateStart(Date JavaDoc dateStart) {
162         this.dateStart = dateStart;
163     }
164     
165     private Date JavaDoc dateEnd;
166
167    /**
168     *
169     * @hibernate.property
170     * column="DATE_END"
171     *
172     * @hibernate.column
173     * name="dateEnd"
174     * sql-type="TIMESTAMP"
175     *
176     */

177
178     public Date JavaDoc getDateEnd() {
179         return this.dateEnd;
180     }
181
182     public void setDateEnd(Date JavaDoc dateEnd) {
183         this.dateEnd = dateEnd;
184     }
185     
186     private String JavaDoc duration;
187
188     /** Getter for property duration.
189    /**
190     *
191     * @hibernate.property
192     * column="DURATION"
193     *
194     * @hibernate.column
195     * name="duration"
196     * sql-type="VARCHAR(255)"
197     *
198     */

199
200     public String JavaDoc getDuration() {
201         return this.duration;
202     }
203
204     public void setDuration(String JavaDoc duration) {
205         this.duration = duration;
206         /*
207          * Currently, use this duration to create a DateEnd. This is not optimal
208          * but works for Apple iCal and is strictly true.
209          */

210         if (getDateStart() != null && getDateEnd() == null) {
211             //System.err.println("Generating a DateEnd");
212
// PT15M
213
char durationArray[] = duration.substring(2).toCharArray();
214             // Now read each char and build up numerics into a number and
215
// non-numerics
216
// indicate a unit of time. Convert all units of time into secs then
217
// add
218
// to the result.
219
String JavaDoc timeBuilt = "";
220             int totalSecs = 0;
221             for (int ctr = 0; ctr < durationArray.length; ctr++) {
222                 String JavaDoc thisChar = String.valueOf(durationArray[ctr]);
223                 // Is this a number or a letter.
224
int timeUnit = thisChar.indexOf("HMS");
225                 if (timeUnit != -1) {
226                     // This is a time unit! Multiply by seconds
227
if (timeUnit == 0)
228                         totalSecs = totalSecs + Integer.parseInt(timeBuilt)
229                                 * 3600;
230                     if (timeUnit == 1)
231                         totalSecs = totalSecs + Integer.parseInt(timeBuilt)
232                                 * 60;
233                     if (timeUnit == 2)
234                         totalSecs = totalSecs + Integer.parseInt(timeBuilt);
235                     timeBuilt = "";
236                 } else {
237                     // Build up total time for time unit.
238
timeBuilt = timeBuilt.concat(thisChar);
239                 }
240             }
241             // Now adjust the dateEnd to dateStart + secs.
242
int dateRepeatUnit = Calendar.SECOND;
243             Calendar JavaDoc workDateEnd = new GregorianCalendar JavaDoc();
244             workDateEnd.setTime(getDateStart());
245             workDateEnd.add(dateRepeatUnit, totalSecs);
246             setDateEnd(workDateEnd.getTime());
247         }
248     }
249     
250     private String JavaDoc description;
251
252    /**
253     *
254     * @hibernate.property
255     * column="DESCRIPTION"
256     *
257     * @hibernate.column
258     * name="description"
259     * sql-type="VARCHAR(255)"
260     *
261     */

262     
263     public String JavaDoc getDescription() {
264         return this.description;
265     }
266     
267     public void setDescription(String JavaDoc description) {
268         this.description = description;
269     }
270     
271     private String JavaDoc summary;
272
273    /**
274     *
275     * @hibernate.property
276     * column="SUMMARY"
277     *
278     * @hibernate.column
279     * name="summary"
280     * sql-type="VARCHAR(255)"
281     *
282     */

283     
284     public String JavaDoc getSummary() {
285         return this.summary;
286     }
287     
288     public void setSummary(String JavaDoc summary) {
289         this.summary = summary;
290     }
291     
292     private int sequence;
293
294    /**
295     *
296     * @hibernate.property
297     * column="SEQUENCE"
298     *
299     * @hibernate.column
300     * name="sequence"
301     * sql-type="INTEGER"
302     *
303     */

304     
305     public int getSequence() {
306         return this.sequence;
307     }
308     
309     public void setSequence(int sequence) {
310         this.sequence = sequence;
311     }
312     
313     private String JavaDoc categories;
314
315    /**
316     *
317     * @hibernate.property
318     * column="CATEGORIES"
319     *
320     * @hibernate.column
321     * name="categories"
322     * sql-type="VARCHAR(255)"
323     *
324     */

325     
326     public String JavaDoc getCategories() {
327         return this.categories;
328     }
329     
330     public void setCategories(String JavaDoc categories) {
331         this.categories = categories;
332     }
333     
334     private String JavaDoc eventClass;
335
336    /**
337     *
338     * @hibernate.property
339     * column="CLASS_OF_EVENT"
340     *
341     * @hibernate.column
342     * name="classOfEvent"
343     * sql-type="VARCHAR(255)"
344     *
345     */

346     
347     public String JavaDoc getEventClass() {
348         return this.eventClass;
349     }
350     
351     public void setEventClass(String JavaDoc eventClass) {
352         this.eventClass = eventClass;
353 //System.err.println("icalevent>>" +eventClass);
354
}
355     
356     private String JavaDoc rRule;
357
358    /**
359     *
360     * @hibernate.property
361     * column="RRULE"
362     *
363     * @hibernate.column
364     * name="rrule"
365     * sql-type="VARCHAR(255)"
366     *
367     */

368
369     public String JavaDoc getRRule() {
370         return this.rRule;
371     }
372     
373     public void setRRule(String JavaDoc rRule) {
374         this.rRule = rRule;
375     }
376
377     private int repeatCount;
378
379    /**
380     *
381     * @hibernate.property
382     * column="REPEAT_COUNT"
383     *
384     * @hibernate.column
385     * name="repeatCount"
386     * sql-type="INTEGER"
387     *
388     */

389     
390     public int getRepeatCount() {
391         return this.repeatCount;
392     }
393     
394     public void setRepeatCount(int repeatCount) {
395         this.repeatCount = repeatCount;
396     }
397
398     public Collection JavaDoc exDateCollection;
399     
400     public Collection JavaDoc getExDateCollection() {
401         return this.exDateCollection;
402     }
403     
404     public void setExDateCollection(Collection JavaDoc exDateCollection) {
405         this.exDateCollection = exDateCollection;
406     }
407
408     
409     private boolean exDatesExist;
410
411    /**
412     *
413     * @hibernate.property
414     * column="EXDATES_EXIST"
415     *
416     * @hibernate.column
417     * name="exDatesExist"
418     * sql-type="Boolean"
419     *
420     */

421     
422     public boolean isExDatesExist() {
423         return this.exDatesExist;
424     }
425     
426     public void setExDatesExist(boolean exDatesExist) {
427         this.exDatesExist = exDatesExist;
428     }
429
430     /** Holds value of property repeatRules. */
431     private RepeatRules repeatRules;
432
433     /** Getter for property repeatRules.
434      * @return Value of property repeatRules.
435      *
436      */

437     public RepeatRules getRepeatRules() {
438         return this.repeatRules;
439     }
440     
441     /** Setter for property repeatRules.
442      * @param repeatRules New value of property repeatRules.
443      *
444      */

445     public void setRepeatRules(RepeatRules repeatRules) {
446         this.repeatRules = repeatRules;
447     }
448
449
450     public ICalendarVEvent() {
451         this.exDateCollection = new ArrayList JavaDoc();
452         this.eventClass = null;
453         this.repeatCount = 0;
454         this.repeatRules = new RepeatRules();
455         this.categories = null;
456         this.dateStart = null;
457         this.dateEnd = null;
458         this.description = null;
459         this.duration = null;
460         this.eventClass = null;
461         this.exDatesExist = false;
462         this.rRule = null;
463         this.sequence = 0;
464         this.summary = null;
465         this.transparency = null;
466         this.uid = null;
467     }
468     
469     public ICalendarVEvent(Date JavaDoc dateStart, Date JavaDoc dateEnd, String JavaDoc description, String JavaDoc duration,
470             String JavaDoc summary, ArrayList JavaDoc exDates, RepeatRules repRules)
471     {
472         this.exDateCollection = exDates;
473         this.eventClass = null;
474         this.repeatCount = 0;
475         this.repeatRules = repRules;
476         this.categories = null;
477         this.dateStart = dateStart;
478         this.dateEnd = dateEnd;
479         this.description = description;
480         this.duration = duration;
481         this.eventClass = null;
482         this.exDatesExist = false;
483         this.rRule = null;
484         this.sequence = 0;
485         this.summary = summary;
486         this.transparency = null;
487         this.uid = null;
488     }
489
490     public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc {
491         return super.clone();
492     }
493
494     
495     /*
496      * To VEVENT
497      *
498      *
499      * This will create a VEVENT if applicable.
500      *
501      * Note there is plenty to be improved here. Not least the rule that wraps lines to 78 chars..
502      *
503      *
504             BEGIN:VEVENT
505             DTSTAMP:20041029T184718Z
506             ORGANIZER:MAILTO:sfg@eurekait.com
507             CREATED:20041029T021927Z
508             UID:libkcal-2020175830.1064
509             SEQUENCE:0
510             LAST-MODIFIED:20041029T021927Z
511             SUMMARY:Hibernate integrate to Claims
512             CLASS:PUBLIC
513             PRIORITY:3
514             DTSTART:20041028T131500Z
515             DTEND:20041028T223000Z
516             TRANSP:OPAQUE
517             END:VEVENT
518
519      *
520      */

521     public String JavaDoc toVEvent() {
522         
523         //VEVENTformatter.setTimeZone(TimeZone.getDefault().getTimeZone("GMT"));
524

525         StringBuffer JavaDoc vEventBuffer = new StringBuffer JavaDoc();
526         vEventBuffer.append(ICalUtil.makeVEventLines("BEGIN:VEVENT",""));
527         vEventBuffer.append(ICalUtil.makeVEventLines("UID:",this.uid));
528         vEventBuffer.append(ICalUtil.makeVEventLines("TRANSP:",this.transparency));
529         vEventBuffer.append(ICalUtil.makeVEventLines("DTSTART;",getVEventLocalTime(this.dateStart)));
530         vEventBuffer.append(ICalUtil.makeVEventLines("DTEND;",getVEventLocalTime(this.dateEnd)));
531         vEventBuffer.append(ICalUtil.makeVEventLines("DTSTAMP:",VEVENTformatter.format(this.dateStamp)));
532         vEventBuffer.append(ICalUtil.makeVEventLines("ORGANIZER:",this.organizer));
533         vEventBuffer.append(ICalUtil.makeVEventLines("CREATED:",VEVENTformatter.format(this.created)));
534         vEventBuffer.append(ICalUtil.makeVEventLines("LAST-MODIFIED:",VEVENTformatter.format(this.lastModified)));
535         vEventBuffer.append(ICalUtil.makeVEventLines("SUMMARY:",this.summary));
536         vEventBuffer.append(ICalUtil.makeVEventLines("DESCRIPTION:",this.description));
537         vEventBuffer.append(ICalUtil.makeVEventLines("SEQUENCE:",new Integer JavaDoc(this.sequence).toString()));
538         vEventBuffer.append(ICalUtil.makeVEventLines("CLASS:",this.eventClass));
539         vEventBuffer.append(ICalUtil.makeVEventLines("ATTACH:",this.attach));
540         vEventBuffer.append(ICalUtil.makeVEventLines("END:VEVENT",""));
541         
542         return vEventBuffer.toString();
543     }
544     
545     /*
546      * Make this locale dependent...
547      */

548     public String JavaDoc getVEventLocalTime(Date JavaDoc localTime)
549     {
550         if (localTime!=null)
551             return "VALUE=DATE-TIME;TZID=/softwarestudio.org/Olson_20011030_5/"+TimeZone.getDefault().getID()+":"+localDateFormatter.format(localTime);
552         else
553             return "";
554     }
555     
556     /*
557      * To XML method Originally built so as to enable a collection of expanded
558      * dates to be created.
559      */

560     
561     public String JavaDoc toXML() {
562         StringBuffer JavaDoc buffer = new StringBuffer JavaDoc();
563         buffer.append("<vevent>");
564         buffer.append("<uid>").append(this.uid).append("</uid>");
565         // Only add element if it has a value
566
if ( this.transparency != null && this.transparency.length() > 0) {
567             buffer.append("<transparency>");
568             buffer.append(this.transparency);
569             buffer.append("</transparency>");
570         }
571         // Add new elements for additional iCal fields added
572
if ( this.location != null && this.location.length() > 0) {
573             buffer.append("<location>");
574             buffer.append("<![CDATA[");
575             buffer.append(this.location);
576             buffer.append("]]>");
577             buffer.append("</location>");
578         }
579         if ( this.url != null && this.url.length() > 0) {
580             buffer.append("<url>");
581             buffer.append(this.url);
582             buffer.append("</url>");
583         }
584         if ( this.organizer != null && this.organizer.length() > 0) {
585             buffer.append("<organizer>");
586             buffer.append(this.organizer);
587             buffer.append("</organizer>");
588         }
589         if ( this.organizerEmail != null && this.organizerEmail.length() > 0) {
590             buffer.append("<organizeremail>");
591             buffer.append("<![CDATA[");
592             buffer.append(this.organizerEmail);
593             buffer.append("]]>");
594             buffer.append("</organizeremail>");
595         }
596         if ( getStatus() != null && getStatus().length() > 0) {
597             buffer.append("<status>");
598             buffer.append(getStatus());
599             buffer.append("</status>");
600         }
601         buffer.append("<datestart>");
602         if ( this.dateStart != null )
603             buffer.append(formatter.format(this.dateStart));
604         buffer.append("</datestart>");
605         buffer.append("<dateend>");
606         if ( this.dateEnd != null )
607             buffer.append(formatter.format(this.dateEnd));
608         buffer.append("</dateend>");
609
610         if ( this.description != null && this.description.length() > 0) {
611             buffer.append("<description>");
612             buffer.append("<![CDATA[").append(this.description).append("]]>");
613             buffer.append("</description>");
614         }
615         buffer.append("<summary>");
616         if ( this.summary != null )
617             buffer.append("<![CDATA[").append(this.summary).append("]]>");
618         buffer.append("</summary>");
619         buffer.append("<sequence>");
620         if ( java.lang.Integer.toString(this.sequence) != null )
621             buffer.append(java.lang.Integer.toString(this.sequence));
622         buffer.append("</sequence>");
623         if ( this.categories != null && this.categories.length() > 0) {
624             buffer.append("<categories>");
625             buffer.append(this.categories);
626             buffer.append("</categories>");
627         }
628         if ( this.eventClass != null && this.eventClass.length() > 0) {
629             buffer.append("<eventclass>");
630             buffer.append(this.eventClass);
631             buffer.append("</eventclass>");
632         }
633         buffer.append("</vevent>");
634         return buffer.toString();
635     }
636
637
638     /*
639      * Reads XML back into event class Originally built so as to enable a
640      * collection of expanded dates to be created.
641      */

642     public void fromXML(String JavaDoc inXML) {
643         try {
644             DocumentBuilderFactory JavaDoc docuBuilderFactory = DocumentBuilderFactory
645                     .newInstance();
646             docuBuilderFactory.setValidating(false);
647             DocumentBuilder JavaDoc docuBuilder = docuBuilderFactory
648                     .newDocumentBuilder();
649             ByteArrayInputStream JavaDoc bais = new ByteArrayInputStream JavaDoc(inXML
650                     .getBytes());
651             Document JavaDoc doc = docuBuilder.parse(bais);
652             NodeList JavaDoc nl = doc.getFirstChild().getChildNodes();
653
654             for (int ctr = 0; ctr < nl.getLength(); ctr++) {
655                 Node JavaDoc ni = nl.item(ctr);
656                 // System.err.println("ctr:" +ctr);
657
String JavaDoc nodeName = ni.getNodeName();
658                 Node JavaDoc nodeChild = ni.getFirstChild();
659                 String JavaDoc nodeValue = "";
660                 try {
661                     nodeValue = nodeChild.getNodeValue();
662                 } catch (Exception JavaDoc e) {
663                     // Ignore catch, process next.. as NULL
664
}
665                 // System.err.println("Node/Value:" +nodeName +nodeValue);
666
if (nodeValue != null) {
667                     if (nodeName.equals("uid"))
668                         this.setUid(nodeValue);
669                     else if (nodeName.equals("transparency"))
670                         this.setTransparency(nodeValue);
671                     else if (nodeName.equals("datestart"))
672                         this.setDateStart((Date JavaDoc) formatter.parse(nodeValue));
673                     else if (nodeName.equals("dateend"))
674                         this.setDateEnd((Date JavaDoc) formatter.parse(nodeValue));
675                     else if (nodeName.equals("description"))
676                         this.setDescription(nodeValue);
677                     else if (nodeName.equals("summary"))
678                         this.setSummary(nodeValue);
679                     else if (nodeName.equals("categories"))
680                         this.setCategories(nodeValue);
681                     else if (nodeName.equals("eventclass"))
682                         this.setEventClass(nodeValue);
683                     // Add new iCal fields
684
else if (nodeName.equals("location"))
685                         this.setLocation(nodeValue);
686                     else if (nodeName.equals("url"))
687                         this.setUrl(nodeValue);
688                     else if (nodeName.equals("organizer"))
689                         this.setOrganizer(nodeValue);
690                     else if (nodeName.equals("organizeremail"))
691                         this.setOrganizerEmail(nodeValue);
692                     else if (nodeName.equals("status"))
693                         this.setPercentComplete(nodeValue);
694                 }
695             }
696         } catch (Exception JavaDoc e) {
697             System.err.println("XML Parser exception: fromXML:" + e);
698         }
699     }
700
701
702     public boolean equals(Object JavaDoc o) {
703         if (o instanceof ICalendarVEvent) {
704             ICalendarVEvent e = (ICalendarVEvent) o;
705             return uid.equals(e.uid) && dateStart.equals(e.dateStart)
706                     && dateEnd.equals(e.dateEnd);
707         }
708         return false;
709     }
710
711     public int hashCode() {
712         return uid.hashCode() ^ dateStart.hashCode() ^ dateEnd.hashCode();
713     }
714
715     public static class StartDateComparator implements Comparator JavaDoc {
716         public int compare(Object JavaDoc o1, Object JavaDoc o2) {
717             ICalendarVEvent e1 = (ICalendarVEvent) o1;
718             ICalendarVEvent e2 = (ICalendarVEvent) o2;
719             return e1.getDateStart().compareTo(e2.getDateStart());
720         }
721
722         public boolean equals(Object JavaDoc obj) {
723             return (obj instanceof StartDateComparator);
724         }
725     }
726
727     public static class StartDateUIDComparator implements Comparator JavaDoc {
728         public int compare(Object JavaDoc o1, Object JavaDoc o2) {
729             ICalendarVEvent e1 = (ICalendarVEvent) o1;
730             ICalendarVEvent e2 = (ICalendarVEvent) o2;
731             int out = e1.getDateStart().compareTo(e2.getDateStart());
732             if (out == 0) {
733                 out = e1.getUid().compareTo(e2.getUid());
734             }
735             return out;
736         }
737
738         public boolean equals(Object JavaDoc obj) {
739             return (obj instanceof StartDateUIDComparator);
740         }
741     }
742
743    /**
744     *
745     * @hibernate.property
746     * column="DATE_CREATED"
747     *
748     * @hibernate.column
749     * name="created"
750     * sql-type="TIMESTAMP"
751     *
752     */

753     public Date JavaDoc getCreated() {
754         return created;
755     }
756     public void setCreated(Date JavaDoc created) {
757         this.created = created;
758     }
759     /**
760     *
761     * @hibernate.property
762     * column="DATE_STAMP"
763     *
764     * @hibernate.column
765     * name="dateStamp"
766     * sql-type="TIMESTAMP"
767     *
768     */

769     public Date JavaDoc getDateStamp() {
770         return dateStamp;
771     }
772     public void setDateStamp(Date JavaDoc dateStamp) {
773         this.dateStamp = dateStamp;
774     }
775      /**
776     *
777     * @hibernate.property
778     * column="LAST_MODIFIED"
779     *
780     * @hibernate.column
781     * name="lastModified"
782     * sql-type="TIMESTAMP"
783     *
784     */

785     public Date JavaDoc getLastModified() {
786         return lastModified;
787     }
788     public void setLastModified(Date JavaDoc lastModified) {
789         this.lastModified = lastModified;
790     }
791      /**
792     *
793     * @hibernate.property
794     * column="ORGANIZER"
795     *
796     * @hibernate.column
797     * name="organizer"
798     * sql-type="VARCHAR"
799     *
800     */

801     public String JavaDoc getOrganizer() {
802         return organizer;
803     }
804     public void setOrganizer(String JavaDoc organizer) {
805         this.organizer = organizer;
806     }
807
808    /**
809     *
810     * @hibernate.property
811     * column="PRIORITY"
812     *
813     * @hibernate.column
814     * name="priority"
815     * sql-type="INTEGER"
816     *
817     */

818     public int getPriority() {
819         return priority;
820     }
821     public void setPriority(int priority) {
822         this.priority = priority;
823     }
824     /**
825     *
826     * @hibernate.property
827     * column="ATTACH"
828     *
829     * @hibernate.column
830     * name="attach"
831     * sql-type="VARCHAR(255)"
832     *
833     */

834     public String JavaDoc getAttach() {
835         return attach;
836     }
837     public void setAttach(String JavaDoc attach) {
838         this.attach = attach;
839     }
840     /**
841     *
842     * @hibernate.property
843     * column="LOCATION"
844     *
845     * @hibernate.column
846     * name="location"
847     * sql-type="VARCHAR(255)"
848     *
849     */

850     public String JavaDoc getLocation() {
851         return location;
852     }
853     public void setLocation(String JavaDoc location) {
854         this.location = location;
855     }
856     /**
857     *
858     * @hibernate.property
859     * column="PERCENTCOMPLETE"
860     *
861     * @hibernate.column
862     * name="percentComplete"
863     * sql-type="VARCHAR(255)"
864     *
865     */

866     public String JavaDoc getPercentComplete() {
867         return percentComplete;
868     }
869     public void setPercentComplete(String JavaDoc percentComplete) {
870         this.percentComplete = percentComplete;
871     }
872     public boolean isRecurrenceId() {
873         return recurrenceId;
874     }
875     public void setRecurrenceId(boolean recurrenceId) {
876         this.recurrenceId = recurrenceId;
877     }
878     /**
879     *
880     * @hibernate.property
881     * column="URL"
882     *
883     * @hibernate.column
884     * name="url"
885     * sql-type="VARCHAR(255)"
886     *
887     */

888     public String JavaDoc getUrl() {
889         return url;
890     }
891     public void setUrl(String JavaDoc url) {
892         this.url = url;
893     }
894     /**
895     *
896     * @hibernate.property
897     * column="ORGANISEREMAIL"
898     *
899     * @hibernate.column
900     * name="organizerEmail"
901     * sql-type="VARCHAR(255)"
902     *
903     */

904     public String JavaDoc getOrganizerEmail() {
905         return organizerEmail;
906     }
907     public void setOrganizerEmail(String JavaDoc organizerEmail) {
908         this.organizerEmail = organizerEmail;
909     }
910     public String JavaDoc getStatus()
911     {
912         return status;
913     }
914     public void setStatus(String JavaDoc s)
915     {
916         status = s;
917     }
918     
919     public String JavaDoc getComment() {
920         return comment;
921     }
922     public void setComment(String JavaDoc comment) {
923         this.comment = comment;
924     }
925     public String JavaDoc getGeo() {
926         return geo;
927     }
928     public void setGeo(String JavaDoc geo) {
929         this.geo = geo;
930     }
931     public float getGeoX() {
932         return geoX;
933     }
934     public void setGeoX(float geoX) {
935         this.geoX = geoX;
936     }
937     public float getGeoY() {
938         return geoY;
939     }
940     public void setGeoY(float geoY) {
941         this.geoY = geoY;
942     }
943     public String JavaDoc getResources() {
944         return resources;
945     }
946     public void setResources(String JavaDoc resources) {
947         this.resources = resources;
948     }
949     public String JavaDoc getContact() {
950         return contact;
951     }
952     public void setContact(String JavaDoc contact) {
953         this.contact = contact;
954     }
955     public String JavaDoc getRelatedTo() {
956         return relatedTo;
957     }
958     public void setRelatedTo(String JavaDoc relatedTo) {
959         this.relatedTo = relatedTo;
960     }
961     public String JavaDoc getRequestStatus() {
962         return requestStatus;
963     }
964     public void setRequestStatus(String JavaDoc requestStatus) {
965         this.requestStatus = requestStatus;
966     }
967 }
968
969
Popular Tags