KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > business > calendar > event > publicholiday > PublicHolidayDO


1 /*
2  * Copyright (c) 2001 - 2005 ivata limited.
3  * All rights reserved.
4  * -----------------------------------------------------------------------------
5  * ivata groupware may be redistributed under the GNU General Public
6  * License as published by the Free Software Foundation;
7  * version 2 of the License.
8  *
9  * These programs are free software; you can redistribute them and/or
10  * modify them under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; version 2 of the License.
12  *
13  * These programs are distributed in the hope that they will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU General Public License in the file LICENSE.txt for more
18  * details.
19  *
20  * If you would like a copy of the GNU General Public License write to
21  *
22  * Free Software Foundation, Inc.
23  * 59 Temple Place - Suite 330
24  * Boston, MA 02111-1307, USA.
25  *
26  *
27  * To arrange commercial support and licensing, contact ivata at
28  * http://www.ivata.com/contact.jsp
29  * -----------------------------------------------------------------------------
30  * $Log: PublicHolidayDO.java,v $
31  * Revision 1.2 2005/04/09 17:19:17 colinmacleod
32  * Changed copyright text to GPL v2 explicitly.
33  *
34  * Revision 1.1.1.1 2005/03/10 17:47:45 colinmacleod
35  * Restructured ivata op around Hibernate/PicoContainer.
36  * Renamed ivata groupware.
37  *
38  * Revision 1.2 2004/11/03 15:49:51 colinmacleod
39  * Changed todo comments to TODO: all caps.
40  *
41  * Revision 1.1 2004/07/13 19:42:13 colinmacleod
42  * Moved project to POJOs from EJBs.
43  * Applied PicoContainer to services layer (replacing session EJBs).
44  * Applied Hibernate to persistence layer (replacing entity EJBs).
45  *
46  * Revision 1.4 2004/03/21 21:16:21 colinmacleod
47  * Shortened name to ivata op.
48  *
49  * Revision 1.3 2004/02/10 19:57:22 colinmacleod
50  * Changed email address.
51  *
52  * Revision 1.2 2004/02/01 22:07:29 colinmacleod
53  * Added full names to author tags
54  *
55  * Revision 1.1.1.1 2004/01/27 20:58:20 colinmacleod
56  * Moved ivata openportal to SourceForge..
57  *
58  * Revision 1.6 2003/11/04 09:27:15 jano
59  * fixing mistaakes in XDoclet tags
60  *
61  * Revision 1.5 2003/11/03 11:28:48 jano
62  * commiting calendar,
63  * tryinjg to fix deploying problem
64  *
65  * Revision 1.4 2003/10/28 13:10:23 jano
66  * commiting calendar,
67  * still fixing compile and building openGroupware project
68  *
69  * Revision 1.3 2003/10/15 13:59:52 jano
70  * converting to XDoclet
71  *
72  * Revision 1.2 2003/10/15 13:57:23 colin
73  * fixing for XDoclet
74  *
75  * Revision 1.2 2003/02/25 14:38:13 colin
76  * implemented setModified methods on entity beans thro IvataEntityBean superclass
77  *
78  * Revision 1.1 2003/02/24 19:09:21 colin
79  * moved to business
80  * -----------------------------------------------------------------------------
81  */

82 package com.ivata.groupware.business.calendar.event.publicholiday;
83
84 import com.ivata.groupware.business.addressbook.address.country.CountryDO;
85 import com.ivata.groupware.business.calendar.event.EventDO;
86
87
88 /**
89  * <p>Public holiday is event with country and region code. TODO:</p>
90  *
91  * @since 2002-08-02
92  * @author Jan Boros <janboros@sourceforge.net>
93  * @author Colin MacLeod
94  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
95  * @version $Revision: 1.2 $
96  *
97  * @hibernate.joined-subclass
98  * table="public_holiday"
99  * @hibernate.joined-subclass-key
100  * column="calendar_event"
101  */

102 public class PublicHolidayDO extends EventDO {
103     /**
104      * <p>The country to which this public holiday applies.</p>
105      */

106     private CountryDO country;
107
108     /**
109      * <p>Get the region code to which this public holiday applies.</p>
110      */

111     private String JavaDoc regionCode;
112     /**
113      * <p>Get the country to which this public holiday applies.</p>
114      *
115      * @return the country to which this public holiday applies.
116      *
117      * @hibernate.many-to-one
118      */

119     public final CountryDO getCountry() {
120         return country;
121     }
122     /**
123      * <p>Get the region code to which this public holiday applies.</p>
124      *
125      * @return region code to which this public holiday applies.
126      *
127      * @hibernate.property
128      * column="region_code"
129      */

130     public final String JavaDoc getRegionCode() {
131         return regionCode;
132     }
133
134     /**
135      * <p>Set the country to which this public holiday applies.</p>
136      *
137      * @param country to which this public holiday applies.
138      */

139     public final void setCountry(final CountryDO country) {
140         this.country = country;
141     }
142
143     /**
144      * <p>Set the region code to which this public holiday applies.</p>
145      *
146      * @param region code to which this public holiday applies.
147      */

148     public final void setRegionCode(final String JavaDoc regionCode) {
149         this.regionCode = regionCode;
150     }
151 }
152
Popular Tags