001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.calendar.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link CalEvent}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       CalEvent
026     * @generated
027     */
028    public class CalEventWrapper implements CalEvent, ModelWrapper<CalEvent> {
029            public CalEventWrapper(CalEvent calEvent) {
030                    _calEvent = calEvent;
031            }
032    
033            public Class<?> getModelClass() {
034                    return CalEvent.class;
035            }
036    
037            public String getModelClassName() {
038                    return CalEvent.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this cal event.
043            *
044            * @return the primary key of this cal event
045            */
046            public long getPrimaryKey() {
047                    return _calEvent.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this cal event.
052            *
053            * @param primaryKey the primary key of this cal event
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _calEvent.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the uuid of this cal event.
061            *
062            * @return the uuid of this cal event
063            */
064            public java.lang.String getUuid() {
065                    return _calEvent.getUuid();
066            }
067    
068            /**
069            * Sets the uuid of this cal event.
070            *
071            * @param uuid the uuid of this cal event
072            */
073            public void setUuid(java.lang.String uuid) {
074                    _calEvent.setUuid(uuid);
075            }
076    
077            /**
078            * Returns the event ID of this cal event.
079            *
080            * @return the event ID of this cal event
081            */
082            public long getEventId() {
083                    return _calEvent.getEventId();
084            }
085    
086            /**
087            * Sets the event ID of this cal event.
088            *
089            * @param eventId the event ID of this cal event
090            */
091            public void setEventId(long eventId) {
092                    _calEvent.setEventId(eventId);
093            }
094    
095            /**
096            * Returns the group ID of this cal event.
097            *
098            * @return the group ID of this cal event
099            */
100            public long getGroupId() {
101                    return _calEvent.getGroupId();
102            }
103    
104            /**
105            * Sets the group ID of this cal event.
106            *
107            * @param groupId the group ID of this cal event
108            */
109            public void setGroupId(long groupId) {
110                    _calEvent.setGroupId(groupId);
111            }
112    
113            /**
114            * Returns the company ID of this cal event.
115            *
116            * @return the company ID of this cal event
117            */
118            public long getCompanyId() {
119                    return _calEvent.getCompanyId();
120            }
121    
122            /**
123            * Sets the company ID of this cal event.
124            *
125            * @param companyId the company ID of this cal event
126            */
127            public void setCompanyId(long companyId) {
128                    _calEvent.setCompanyId(companyId);
129            }
130    
131            /**
132            * Returns the user ID of this cal event.
133            *
134            * @return the user ID of this cal event
135            */
136            public long getUserId() {
137                    return _calEvent.getUserId();
138            }
139    
140            /**
141            * Sets the user ID of this cal event.
142            *
143            * @param userId the user ID of this cal event
144            */
145            public void setUserId(long userId) {
146                    _calEvent.setUserId(userId);
147            }
148    
149            /**
150            * Returns the user uuid of this cal event.
151            *
152            * @return the user uuid of this cal event
153            * @throws SystemException if a system exception occurred
154            */
155            public java.lang.String getUserUuid()
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _calEvent.getUserUuid();
158            }
159    
160            /**
161            * Sets the user uuid of this cal event.
162            *
163            * @param userUuid the user uuid of this cal event
164            */
165            public void setUserUuid(java.lang.String userUuid) {
166                    _calEvent.setUserUuid(userUuid);
167            }
168    
169            /**
170            * Returns the user name of this cal event.
171            *
172            * @return the user name of this cal event
173            */
174            public java.lang.String getUserName() {
175                    return _calEvent.getUserName();
176            }
177    
178            /**
179            * Sets the user name of this cal event.
180            *
181            * @param userName the user name of this cal event
182            */
183            public void setUserName(java.lang.String userName) {
184                    _calEvent.setUserName(userName);
185            }
186    
187            /**
188            * Returns the create date of this cal event.
189            *
190            * @return the create date of this cal event
191            */
192            public java.util.Date getCreateDate() {
193                    return _calEvent.getCreateDate();
194            }
195    
196            /**
197            * Sets the create date of this cal event.
198            *
199            * @param createDate the create date of this cal event
200            */
201            public void setCreateDate(java.util.Date createDate) {
202                    _calEvent.setCreateDate(createDate);
203            }
204    
205            /**
206            * Returns the modified date of this cal event.
207            *
208            * @return the modified date of this cal event
209            */
210            public java.util.Date getModifiedDate() {
211                    return _calEvent.getModifiedDate();
212            }
213    
214            /**
215            * Sets the modified date of this cal event.
216            *
217            * @param modifiedDate the modified date of this cal event
218            */
219            public void setModifiedDate(java.util.Date modifiedDate) {
220                    _calEvent.setModifiedDate(modifiedDate);
221            }
222    
223            /**
224            * Returns the title of this cal event.
225            *
226            * @return the title of this cal event
227            */
228            public java.lang.String getTitle() {
229                    return _calEvent.getTitle();
230            }
231    
232            /**
233            * Sets the title of this cal event.
234            *
235            * @param title the title of this cal event
236            */
237            public void setTitle(java.lang.String title) {
238                    _calEvent.setTitle(title);
239            }
240    
241            /**
242            * Returns the description of this cal event.
243            *
244            * @return the description of this cal event
245            */
246            public java.lang.String getDescription() {
247                    return _calEvent.getDescription();
248            }
249    
250            /**
251            * Sets the description of this cal event.
252            *
253            * @param description the description of this cal event
254            */
255            public void setDescription(java.lang.String description) {
256                    _calEvent.setDescription(description);
257            }
258    
259            /**
260            * Returns the location of this cal event.
261            *
262            * @return the location of this cal event
263            */
264            public java.lang.String getLocation() {
265                    return _calEvent.getLocation();
266            }
267    
268            /**
269            * Sets the location of this cal event.
270            *
271            * @param location the location of this cal event
272            */
273            public void setLocation(java.lang.String location) {
274                    _calEvent.setLocation(location);
275            }
276    
277            /**
278            * Returns the start date of this cal event.
279            *
280            * @return the start date of this cal event
281            */
282            public java.util.Date getStartDate() {
283                    return _calEvent.getStartDate();
284            }
285    
286            /**
287            * Sets the start date of this cal event.
288            *
289            * @param startDate the start date of this cal event
290            */
291            public void setStartDate(java.util.Date startDate) {
292                    _calEvent.setStartDate(startDate);
293            }
294    
295            /**
296            * Returns the end date of this cal event.
297            *
298            * @return the end date of this cal event
299            */
300            public java.util.Date getEndDate() {
301                    return _calEvent.getEndDate();
302            }
303    
304            /**
305            * Sets the end date of this cal event.
306            *
307            * @param endDate the end date of this cal event
308            */
309            public void setEndDate(java.util.Date endDate) {
310                    _calEvent.setEndDate(endDate);
311            }
312    
313            /**
314            * Returns the duration hour of this cal event.
315            *
316            * @return the duration hour of this cal event
317            */
318            public int getDurationHour() {
319                    return _calEvent.getDurationHour();
320            }
321    
322            /**
323            * Sets the duration hour of this cal event.
324            *
325            * @param durationHour the duration hour of this cal event
326            */
327            public void setDurationHour(int durationHour) {
328                    _calEvent.setDurationHour(durationHour);
329            }
330    
331            /**
332            * Returns the duration minute of this cal event.
333            *
334            * @return the duration minute of this cal event
335            */
336            public int getDurationMinute() {
337                    return _calEvent.getDurationMinute();
338            }
339    
340            /**
341            * Sets the duration minute of this cal event.
342            *
343            * @param durationMinute the duration minute of this cal event
344            */
345            public void setDurationMinute(int durationMinute) {
346                    _calEvent.setDurationMinute(durationMinute);
347            }
348    
349            /**
350            * Returns the all day of this cal event.
351            *
352            * @return the all day of this cal event
353            */
354            public boolean getAllDay() {
355                    return _calEvent.getAllDay();
356            }
357    
358            /**
359            * Returns <code>true</code> if this cal event is all day.
360            *
361            * @return <code>true</code> if this cal event is all day; <code>false</code> otherwise
362            */
363            public boolean isAllDay() {
364                    return _calEvent.isAllDay();
365            }
366    
367            /**
368            * Sets whether this cal event is all day.
369            *
370            * @param allDay the all day of this cal event
371            */
372            public void setAllDay(boolean allDay) {
373                    _calEvent.setAllDay(allDay);
374            }
375    
376            /**
377            * Returns the time zone sensitive of this cal event.
378            *
379            * @return the time zone sensitive of this cal event
380            */
381            public boolean getTimeZoneSensitive() {
382                    return _calEvent.getTimeZoneSensitive();
383            }
384    
385            /**
386            * Returns <code>true</code> if this cal event is time zone sensitive.
387            *
388            * @return <code>true</code> if this cal event is time zone sensitive; <code>false</code> otherwise
389            */
390            public boolean isTimeZoneSensitive() {
391                    return _calEvent.isTimeZoneSensitive();
392            }
393    
394            /**
395            * Sets whether this cal event is time zone sensitive.
396            *
397            * @param timeZoneSensitive the time zone sensitive of this cal event
398            */
399            public void setTimeZoneSensitive(boolean timeZoneSensitive) {
400                    _calEvent.setTimeZoneSensitive(timeZoneSensitive);
401            }
402    
403            /**
404            * Returns the type of this cal event.
405            *
406            * @return the type of this cal event
407            */
408            public java.lang.String getType() {
409                    return _calEvent.getType();
410            }
411    
412            /**
413            * Sets the type of this cal event.
414            *
415            * @param type the type of this cal event
416            */
417            public void setType(java.lang.String type) {
418                    _calEvent.setType(type);
419            }
420    
421            /**
422            * Returns the repeating of this cal event.
423            *
424            * @return the repeating of this cal event
425            */
426            public boolean getRepeating() {
427                    return _calEvent.getRepeating();
428            }
429    
430            /**
431            * Returns <code>true</code> if this cal event is repeating.
432            *
433            * @return <code>true</code> if this cal event is repeating; <code>false</code> otherwise
434            */
435            public boolean isRepeating() {
436                    return _calEvent.isRepeating();
437            }
438    
439            /**
440            * Sets whether this cal event is repeating.
441            *
442            * @param repeating the repeating of this cal event
443            */
444            public void setRepeating(boolean repeating) {
445                    _calEvent.setRepeating(repeating);
446            }
447    
448            /**
449            * Returns the recurrence of this cal event.
450            *
451            * @return the recurrence of this cal event
452            */
453            public java.lang.String getRecurrence() {
454                    return _calEvent.getRecurrence();
455            }
456    
457            /**
458            * Sets the recurrence of this cal event.
459            *
460            * @param recurrence the recurrence of this cal event
461            */
462            public void setRecurrence(java.lang.String recurrence) {
463                    _calEvent.setRecurrence(recurrence);
464            }
465    
466            /**
467            * Returns the remind by of this cal event.
468            *
469            * @return the remind by of this cal event
470            */
471            public int getRemindBy() {
472                    return _calEvent.getRemindBy();
473            }
474    
475            /**
476            * Sets the remind by of this cal event.
477            *
478            * @param remindBy the remind by of this cal event
479            */
480            public void setRemindBy(int remindBy) {
481                    _calEvent.setRemindBy(remindBy);
482            }
483    
484            /**
485            * Returns the first reminder of this cal event.
486            *
487            * @return the first reminder of this cal event
488            */
489            public int getFirstReminder() {
490                    return _calEvent.getFirstReminder();
491            }
492    
493            /**
494            * Sets the first reminder of this cal event.
495            *
496            * @param firstReminder the first reminder of this cal event
497            */
498            public void setFirstReminder(int firstReminder) {
499                    _calEvent.setFirstReminder(firstReminder);
500            }
501    
502            /**
503            * Returns the second reminder of this cal event.
504            *
505            * @return the second reminder of this cal event
506            */
507            public int getSecondReminder() {
508                    return _calEvent.getSecondReminder();
509            }
510    
511            /**
512            * Sets the second reminder of this cal event.
513            *
514            * @param secondReminder the second reminder of this cal event
515            */
516            public void setSecondReminder(int secondReminder) {
517                    _calEvent.setSecondReminder(secondReminder);
518            }
519    
520            public boolean isNew() {
521                    return _calEvent.isNew();
522            }
523    
524            public void setNew(boolean n) {
525                    _calEvent.setNew(n);
526            }
527    
528            public boolean isCachedModel() {
529                    return _calEvent.isCachedModel();
530            }
531    
532            public void setCachedModel(boolean cachedModel) {
533                    _calEvent.setCachedModel(cachedModel);
534            }
535    
536            public boolean isEscapedModel() {
537                    return _calEvent.isEscapedModel();
538            }
539    
540            public java.io.Serializable getPrimaryKeyObj() {
541                    return _calEvent.getPrimaryKeyObj();
542            }
543    
544            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
545                    _calEvent.setPrimaryKeyObj(primaryKeyObj);
546            }
547    
548            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
549                    return _calEvent.getExpandoBridge();
550            }
551    
552            public void setExpandoBridgeAttributes(
553                    com.liferay.portal.service.ServiceContext serviceContext) {
554                    _calEvent.setExpandoBridgeAttributes(serviceContext);
555            }
556    
557            @Override
558            public java.lang.Object clone() {
559                    return new CalEventWrapper((CalEvent)_calEvent.clone());
560            }
561    
562            public int compareTo(com.liferay.portlet.calendar.model.CalEvent calEvent) {
563                    return _calEvent.compareTo(calEvent);
564            }
565    
566            @Override
567            public int hashCode() {
568                    return _calEvent.hashCode();
569            }
570    
571            public com.liferay.portal.model.CacheModel<com.liferay.portlet.calendar.model.CalEvent> toCacheModel() {
572                    return _calEvent.toCacheModel();
573            }
574    
575            public com.liferay.portlet.calendar.model.CalEvent toEscapedModel() {
576                    return new CalEventWrapper(_calEvent.toEscapedModel());
577            }
578    
579            @Override
580            public java.lang.String toString() {
581                    return _calEvent.toString();
582            }
583    
584            public java.lang.String toXmlString() {
585                    return _calEvent.toXmlString();
586            }
587    
588            public void persist()
589                    throws com.liferay.portal.kernel.exception.SystemException {
590                    _calEvent.persist();
591            }
592    
593            public com.liferay.portal.kernel.cal.TZSRecurrence getRecurrenceObj() {
594                    return _calEvent.getRecurrenceObj();
595            }
596    
597            public void setRecurrenceObj(
598                    com.liferay.portal.kernel.cal.TZSRecurrence recurrenceObj) {
599                    _calEvent.setRecurrenceObj(recurrenceObj);
600            }
601    
602            /**
603             * @deprecated Renamed to {@link #getWrappedModel}
604             */
605            public CalEvent getWrappedCalEvent() {
606                    return _calEvent;
607            }
608    
609            public CalEvent getWrappedModel() {
610                    return _calEvent;
611            }
612    
613            public void resetOriginalValues() {
614                    _calEvent.resetOriginalValues();
615            }
616    
617            private CalEvent _calEvent;
618    }