41280b0f461bb56cab41426c5bf56539c11a28fd
[mir.git] / source / mir / core / model / Media.java
1 package mir.core.model;
2
3 import java.io.Serializable;
4 import java.util.Date;
5 import java.util.Set;
6
7 import org.apache.commons.lang.builder.EqualsBuilder;
8 import org.apache.commons.lang.builder.HashCodeBuilder;
9 import org.apache.commons.lang.builder.ToStringBuilder;
10
11 /** @author Hibernate CodeGenerator */
12 public class Media implements Serializable {
13
14     /** identifier field */
15     private Integer id;
16
17     /** persistent field */
18     private String title;
19
20     /** nullable persistent field */
21     private String subtitle;
22
23     /** nullable persistent field */
24     private String edittitle;
25
26     /** persistent field */
27     private String date;
28
29     /** nullable persistent field */
30     private String creator;
31
32     /** nullable persistent field */
33     private String creatorMainUrl;
34
35     /** nullable persistent field */
36     private String creatorEmail;
37
38     /** nullable persistent field */
39     private String creatorAddress;
40
41     /** nullable persistent field */
42     private String creatorPhone;
43
44     /** nullable persistent field */
45     private String description;
46
47     /** nullable persistent field */
48     private String keywords;
49
50     /** nullable persistent field */
51     private String comment;
52
53     /** nullable persistent field */
54     private String source;
55
56     /** nullable persistent field */
57     private Date publishDate;
58
59     /** nullable persistent field */
60     private String publishServer;
61
62     /** nullable persistent field */
63     private String publishPath;
64
65     /** persistent field */
66     private boolean isPublished;
67
68     /** persistent field */
69     private boolean isProduced;
70
71     /** persistent field */
72     private Date webdbCreate;
73
74     /** nullable persistent field */
75     private Date webdbLastchange;
76
77     /** nullable persistent field */
78     private mir.core.model.Feature feature;
79
80     /** nullable persistent field */
81     private MirUser publisher;
82
83     /** nullable persistent field */
84     private Language language;
85
86     /** nullable persistent field */
87     private Rights rights;
88     
89     private Set content;
90
91     /** default constructor */
92     public Media() {
93     
94     }
95
96     public java.lang.Integer getId() {
97         return this.id;
98     }
99
100     public void setId(java.lang.Integer id) {
101         this.id = id;
102     }
103
104     public java.lang.String getTitle() {
105         return this.title;
106     }
107
108     public void setTitle(java.lang.String title) {
109         this.title = title;
110     }
111
112     public java.lang.String getSubtitle() {
113         return this.subtitle;
114     }
115
116     public void setSubtitle(java.lang.String subtitle) {
117         this.subtitle = subtitle;
118     }
119
120     public java.lang.String getEdittitle() {
121         return this.edittitle;
122     }
123
124     public void setEdittitle(java.lang.String edittitle) {
125         this.edittitle = edittitle;
126     }
127
128     public java.lang.String getDate() {
129         return this.date;
130     }
131
132     public void setDate(java.lang.String date) {
133         this.date = date;
134     }
135
136     public java.lang.String getCreator() {
137         return this.creator;
138     }
139
140     public void setCreator(java.lang.String creator) {
141         this.creator = creator;
142     }
143
144     public java.lang.String getCreatorMainUrl() {
145         return this.creatorMainUrl;
146     }
147
148     public void setCreatorMainUrl(java.lang.String creatorMainUrl) {
149         this.creatorMainUrl = creatorMainUrl;
150     }
151
152     public java.lang.String getCreatorEmail() {
153         return this.creatorEmail;
154     }
155
156     public void setCreatorEmail(java.lang.String creatorEmail) {
157         this.creatorEmail = creatorEmail;
158     }
159
160     public java.lang.String getCreatorAddress() {
161         return this.creatorAddress;
162     }
163
164     public void setCreatorAddress(java.lang.String creatorAddress) {
165         this.creatorAddress = creatorAddress;
166     }
167
168     public java.lang.String getCreatorPhone() {
169         return this.creatorPhone;
170     }
171
172     public void setCreatorPhone(java.lang.String creatorPhone) {
173         this.creatorPhone = creatorPhone;
174     }
175
176     public java.lang.String getDescription() {
177         return this.description;
178     }
179
180     public void setDescription(java.lang.String description) {
181         this.description = description;
182     }
183
184     public java.lang.String getKeywords() {
185         return this.keywords;
186     }
187
188     public void setKeywords(java.lang.String keywords) {
189         this.keywords = keywords;
190     }
191
192     public java.lang.String getComment() {
193         return this.comment;
194     }
195
196     public void setComment(java.lang.String comment) {
197         this.comment = comment;
198     }
199
200     public java.lang.String getSource() {
201         return this.source;
202     }
203
204     public void setSource(java.lang.String source) {
205         this.source = source;
206     }
207
208     public java.util.Date getPublishDate() {
209         return this.publishDate;
210     }
211
212     public void setPublishDate(java.util.Date publishDate) {
213         this.publishDate = publishDate;
214     }
215
216     public java.lang.String getPublishServer() {
217         return this.publishServer;
218     }
219
220     public void setPublishServer(java.lang.String publishServer) {
221         this.publishServer = publishServer;
222     }
223
224     public java.lang.String getPublishPath() {
225         return this.publishPath;
226     }
227
228     public void setPublishPath(java.lang.String publishPath) {
229         this.publishPath = publishPath;
230     }
231
232     public boolean isIsPublished() {
233         return this.isPublished;
234     }
235
236     public void setIsPublished(boolean isPublished) {
237         this.isPublished = isPublished;
238     }
239
240     public boolean isIsProduced() {
241         return this.isProduced;
242     }
243
244     public void setIsProduced(boolean isProduced) {
245         this.isProduced = isProduced;
246     }
247
248     public java.util.Date getWebdbCreate() {
249         return this.webdbCreate;
250     }
251
252     public void setWebdbCreate(java.util.Date webdbCreate) {
253         this.webdbCreate = webdbCreate;
254     }
255
256     public java.util.Date getWebdbLastchange() {
257         return this.webdbLastchange;
258     }
259
260     public void setWebdbLastchange(java.util.Date webdbLastchange) {
261         this.webdbLastchange = webdbLastchange;
262     }
263
264     public mir.core.model.Feature getFeature() {
265         return this.feature;
266     }
267
268     public void setFeature(mir.core.model.Feature feature) {
269         this.feature = feature;
270     }
271
272     public mir.core.model.MirUser getPublisher() {
273         return this.publisher;
274     }
275
276     public void setPublisher(mir.core.model.MirUser publisher) {
277         this.publisher = publisher;
278     }
279
280     public mir.core.model.Language getLanguage() {
281         return this.language;
282     }
283
284     public void setLanguage(mir.core.model.Language language) {
285         this.language = language;
286     }
287
288     public mir.core.model.Rights getRights() {
289         return this.rights;
290     }
291
292     public void setRights(mir.core.model.Rights rights) {
293         this.rights = rights;
294     }
295
296                 /**
297                  * @return
298                  */
299                 public Set getContent() {
300                         return content;
301                 }
302
303                 /**
304                  * @param content
305                  */
306                 public void setContent(Set content) {
307                         this.content = content;
308                 }
309
310                 /**
311                  * @return
312                  */
313                 public boolean isProduced() {
314                         return isProduced;
315                 }
316
317                 /**
318                  * @param isProduced
319                  */
320                 public void setProduced(boolean isProduced) {
321                         this.isProduced = isProduced;
322                 }
323
324                 /**
325                  * @return
326                  */
327                 public boolean isPublished() {
328                         return isPublished;
329                 }
330
331                 /**
332                  * @param isPublished
333                  */
334                 public void setPublished(boolean isPublished) {
335                         this.isPublished = isPublished;
336                 }
337
338     public String toString() {
339         return new ToStringBuilder(this)
340             .append("id", getId())
341             .toString();
342     }
343
344     public boolean equals(Object other) {
345         if ( !(other instanceof Media) ) return false;
346         Media castOther = (Media) other;
347         return new EqualsBuilder()
348             .append(this.getId(), castOther.getId())
349             .isEquals();
350     }
351
352     public int hashCode() {
353         return new HashCodeBuilder()
354             .append(getId())
355             .toHashCode();
356     }
357
358 }