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