Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/fencedb/base/Competition.java


1   
2   package org.fencedb.base;
3   
4   import java.sql.Date;
5   
6   /**
7    *  Description of the Class
8    *
9    * @author  vico
10   * @created  June 7, 2003
11   */
12  public class Competition extends BaseObject
13  {
14  
15      private String name;
16      private String shortName;
17      private Date date;
18      private Country country;
19      private int countryId;
20      private String type;
21  
22  
23      /**
24       *Constructor for the Competition object
25       */
26      public Competition()
27      {
28  
29      }
30  
31  
32      /**
33       *Constructor for the Competition object
34       *
35       * @param  name Description of the Parameter
36       * @param  shortName Description of the Parameter
37       * @param  date Description of the Parameter
38       * @param  country Description of the Parameter
39       * @param  type Description of the Parameter
40       * @param  countryId Description of the Parameter
41       */
42      public Competition(String name,
43                         String shortName,
44                         Date date,
45                         Country country,
46                         int countryId,
47                         String type)
48      {
49          this.setName(name);
50          this.setShortName(shortName);
51          this.setDate(date);
52          this.setCountry(country);
53          this.setCountryId(countryId);
54          this.setType(type);
55  
56      }
57  
58  
59      /**
60       *  Sets the name attribute of the Competition object
61       *
62       * @param  name The new name value
63       */
64      public void setName(String name)
65      {
66          this.name = name;
67      }
68  
69  
70      /**
71       *  Sets the shortName attribute of the Competition object
72       *
73       * @param  shortName The new shortName value
74       */
75      public void setShortName(String shortName)
76      {
77          this.shortName = shortName;
78      }
79  
80  
81      /**
82       *  Sets the date attribute of the Competition object
83       *
84       * @param  date The new date value
85       */
86      public void setDate(Date date)
87      {
88          this.date = date;
89      }
90  
91  
92      /**
93       *  Sets the country attribute of the Competition object
94       *
95       * @param  country The new country value
96       */
97      public void setCountry(Country country)
98      {
99          this.country = country;
100     }
101 
102 
103     /**
104      *  Sets the countryId attribute of the Competition object
105      *
106      * @param  countryId The new countryId value
107      */
108     public void setCountryId(int countryId)
109     {
110         this.countryId = countryId;
111     }
112 
113 
114     /**
115      *  Sets the type attribute of the Competition object
116      *
117      * @param  type The new type value
118      */
119     public void setType(String type)
120     {
121         this.type = type;
122     }
123 
124 
125     /**
126      *  Gets the name attribute of the Competition object
127      *
128      * @return  The name value
129      */
130     public String getName()
131     {
132         return name;
133     }
134 
135 
136     /**
137      *  Gets the shortName attribute of the Competition object
138      *
139      * @return  The shortName value
140      */
141     public String getShortName()
142     {
143         return shortName;
144     }
145 
146 
147     /**
148      *  Gets the date attribute of the Competition object
149      *
150      * @return  The date value
151      */
152     public Date getDate()
153     {
154         return date;
155     }
156 
157 
158     /**
159      *  Gets the country attribute of the Competition object
160      *
161      * @return  The country value
162      */
163     public Country getCountry()
164     {
165         return country;
166     }
167 
168 
169     /**
170      *  Gets the countryId attribute of the Competition object
171      *
172      * @return  The countryId value
173      */
174     public int getCountryId()
175     {
176         return countryId;
177     }
178 
179 
180     /**
181      *  Gets the type attribute of the Competition object
182      *
183      * @return  The type value
184      */
185     public String getType()
186     {
187         return type;
188     }
189 
190 }
191