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.announcements.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link AnnouncementsEntry}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       AnnouncementsEntry
024     * @generated
025     */
026    public class AnnouncementsEntryWrapper implements AnnouncementsEntry {
027            public AnnouncementsEntryWrapper(AnnouncementsEntry announcementsEntry) {
028                    _announcementsEntry = announcementsEntry;
029            }
030    
031            public Class<?> getModelClass() {
032                    return AnnouncementsEntry.class;
033            }
034    
035            public String getModelClassName() {
036                    return AnnouncementsEntry.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this announcements entry.
041            *
042            * @return the primary key of this announcements entry
043            */
044            public long getPrimaryKey() {
045                    return _announcementsEntry.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this announcements entry.
050            *
051            * @param primaryKey the primary key of this announcements entry
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _announcementsEntry.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the uuid of this announcements entry.
059            *
060            * @return the uuid of this announcements entry
061            */
062            public java.lang.String getUuid() {
063                    return _announcementsEntry.getUuid();
064            }
065    
066            /**
067            * Sets the uuid of this announcements entry.
068            *
069            * @param uuid the uuid of this announcements entry
070            */
071            public void setUuid(java.lang.String uuid) {
072                    _announcementsEntry.setUuid(uuid);
073            }
074    
075            /**
076            * Returns the entry ID of this announcements entry.
077            *
078            * @return the entry ID of this announcements entry
079            */
080            public long getEntryId() {
081                    return _announcementsEntry.getEntryId();
082            }
083    
084            /**
085            * Sets the entry ID of this announcements entry.
086            *
087            * @param entryId the entry ID of this announcements entry
088            */
089            public void setEntryId(long entryId) {
090                    _announcementsEntry.setEntryId(entryId);
091            }
092    
093            /**
094            * Returns the company ID of this announcements entry.
095            *
096            * @return the company ID of this announcements entry
097            */
098            public long getCompanyId() {
099                    return _announcementsEntry.getCompanyId();
100            }
101    
102            /**
103            * Sets the company ID of this announcements entry.
104            *
105            * @param companyId the company ID of this announcements entry
106            */
107            public void setCompanyId(long companyId) {
108                    _announcementsEntry.setCompanyId(companyId);
109            }
110    
111            /**
112            * Returns the user ID of this announcements entry.
113            *
114            * @return the user ID of this announcements entry
115            */
116            public long getUserId() {
117                    return _announcementsEntry.getUserId();
118            }
119    
120            /**
121            * Sets the user ID of this announcements entry.
122            *
123            * @param userId the user ID of this announcements entry
124            */
125            public void setUserId(long userId) {
126                    _announcementsEntry.setUserId(userId);
127            }
128    
129            /**
130            * Returns the user uuid of this announcements entry.
131            *
132            * @return the user uuid of this announcements entry
133            * @throws SystemException if a system exception occurred
134            */
135            public java.lang.String getUserUuid()
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return _announcementsEntry.getUserUuid();
138            }
139    
140            /**
141            * Sets the user uuid of this announcements entry.
142            *
143            * @param userUuid the user uuid of this announcements entry
144            */
145            public void setUserUuid(java.lang.String userUuid) {
146                    _announcementsEntry.setUserUuid(userUuid);
147            }
148    
149            /**
150            * Returns the user name of this announcements entry.
151            *
152            * @return the user name of this announcements entry
153            */
154            public java.lang.String getUserName() {
155                    return _announcementsEntry.getUserName();
156            }
157    
158            /**
159            * Sets the user name of this announcements entry.
160            *
161            * @param userName the user name of this announcements entry
162            */
163            public void setUserName(java.lang.String userName) {
164                    _announcementsEntry.setUserName(userName);
165            }
166    
167            /**
168            * Returns the create date of this announcements entry.
169            *
170            * @return the create date of this announcements entry
171            */
172            public java.util.Date getCreateDate() {
173                    return _announcementsEntry.getCreateDate();
174            }
175    
176            /**
177            * Sets the create date of this announcements entry.
178            *
179            * @param createDate the create date of this announcements entry
180            */
181            public void setCreateDate(java.util.Date createDate) {
182                    _announcementsEntry.setCreateDate(createDate);
183            }
184    
185            /**
186            * Returns the modified date of this announcements entry.
187            *
188            * @return the modified date of this announcements entry
189            */
190            public java.util.Date getModifiedDate() {
191                    return _announcementsEntry.getModifiedDate();
192            }
193    
194            /**
195            * Sets the modified date of this announcements entry.
196            *
197            * @param modifiedDate the modified date of this announcements entry
198            */
199            public void setModifiedDate(java.util.Date modifiedDate) {
200                    _announcementsEntry.setModifiedDate(modifiedDate);
201            }
202    
203            /**
204            * Returns the fully qualified class name of this announcements entry.
205            *
206            * @return the fully qualified class name of this announcements entry
207            */
208            public java.lang.String getClassName() {
209                    return _announcementsEntry.getClassName();
210            }
211    
212            /**
213            * Returns the class name ID of this announcements entry.
214            *
215            * @return the class name ID of this announcements entry
216            */
217            public long getClassNameId() {
218                    return _announcementsEntry.getClassNameId();
219            }
220    
221            /**
222            * Sets the class name ID of this announcements entry.
223            *
224            * @param classNameId the class name ID of this announcements entry
225            */
226            public void setClassNameId(long classNameId) {
227                    _announcementsEntry.setClassNameId(classNameId);
228            }
229    
230            /**
231            * Returns the class p k of this announcements entry.
232            *
233            * @return the class p k of this announcements entry
234            */
235            public long getClassPK() {
236                    return _announcementsEntry.getClassPK();
237            }
238    
239            /**
240            * Sets the class p k of this announcements entry.
241            *
242            * @param classPK the class p k of this announcements entry
243            */
244            public void setClassPK(long classPK) {
245                    _announcementsEntry.setClassPK(classPK);
246            }
247    
248            /**
249            * Returns the title of this announcements entry.
250            *
251            * @return the title of this announcements entry
252            */
253            public java.lang.String getTitle() {
254                    return _announcementsEntry.getTitle();
255            }
256    
257            /**
258            * Sets the title of this announcements entry.
259            *
260            * @param title the title of this announcements entry
261            */
262            public void setTitle(java.lang.String title) {
263                    _announcementsEntry.setTitle(title);
264            }
265    
266            /**
267            * Returns the content of this announcements entry.
268            *
269            * @return the content of this announcements entry
270            */
271            public java.lang.String getContent() {
272                    return _announcementsEntry.getContent();
273            }
274    
275            /**
276            * Sets the content of this announcements entry.
277            *
278            * @param content the content of this announcements entry
279            */
280            public void setContent(java.lang.String content) {
281                    _announcementsEntry.setContent(content);
282            }
283    
284            /**
285            * Returns the url of this announcements entry.
286            *
287            * @return the url of this announcements entry
288            */
289            public java.lang.String getUrl() {
290                    return _announcementsEntry.getUrl();
291            }
292    
293            /**
294            * Sets the url of this announcements entry.
295            *
296            * @param url the url of this announcements entry
297            */
298            public void setUrl(java.lang.String url) {
299                    _announcementsEntry.setUrl(url);
300            }
301    
302            /**
303            * Returns the type of this announcements entry.
304            *
305            * @return the type of this announcements entry
306            */
307            public java.lang.String getType() {
308                    return _announcementsEntry.getType();
309            }
310    
311            /**
312            * Sets the type of this announcements entry.
313            *
314            * @param type the type of this announcements entry
315            */
316            public void setType(java.lang.String type) {
317                    _announcementsEntry.setType(type);
318            }
319    
320            /**
321            * Returns the display date of this announcements entry.
322            *
323            * @return the display date of this announcements entry
324            */
325            public java.util.Date getDisplayDate() {
326                    return _announcementsEntry.getDisplayDate();
327            }
328    
329            /**
330            * Sets the display date of this announcements entry.
331            *
332            * @param displayDate the display date of this announcements entry
333            */
334            public void setDisplayDate(java.util.Date displayDate) {
335                    _announcementsEntry.setDisplayDate(displayDate);
336            }
337    
338            /**
339            * Returns the expiration date of this announcements entry.
340            *
341            * @return the expiration date of this announcements entry
342            */
343            public java.util.Date getExpirationDate() {
344                    return _announcementsEntry.getExpirationDate();
345            }
346    
347            /**
348            * Sets the expiration date of this announcements entry.
349            *
350            * @param expirationDate the expiration date of this announcements entry
351            */
352            public void setExpirationDate(java.util.Date expirationDate) {
353                    _announcementsEntry.setExpirationDate(expirationDate);
354            }
355    
356            /**
357            * Returns the priority of this announcements entry.
358            *
359            * @return the priority of this announcements entry
360            */
361            public int getPriority() {
362                    return _announcementsEntry.getPriority();
363            }
364    
365            /**
366            * Sets the priority of this announcements entry.
367            *
368            * @param priority the priority of this announcements entry
369            */
370            public void setPriority(int priority) {
371                    _announcementsEntry.setPriority(priority);
372            }
373    
374            /**
375            * Returns the alert of this announcements entry.
376            *
377            * @return the alert of this announcements entry
378            */
379            public boolean getAlert() {
380                    return _announcementsEntry.getAlert();
381            }
382    
383            /**
384            * Returns <code>true</code> if this announcements entry is alert.
385            *
386            * @return <code>true</code> if this announcements entry is alert; <code>false</code> otherwise
387            */
388            public boolean isAlert() {
389                    return _announcementsEntry.isAlert();
390            }
391    
392            /**
393            * Sets whether this announcements entry is alert.
394            *
395            * @param alert the alert of this announcements entry
396            */
397            public void setAlert(boolean alert) {
398                    _announcementsEntry.setAlert(alert);
399            }
400    
401            public boolean isNew() {
402                    return _announcementsEntry.isNew();
403            }
404    
405            public void setNew(boolean n) {
406                    _announcementsEntry.setNew(n);
407            }
408    
409            public boolean isCachedModel() {
410                    return _announcementsEntry.isCachedModel();
411            }
412    
413            public void setCachedModel(boolean cachedModel) {
414                    _announcementsEntry.setCachedModel(cachedModel);
415            }
416    
417            public boolean isEscapedModel() {
418                    return _announcementsEntry.isEscapedModel();
419            }
420    
421            public java.io.Serializable getPrimaryKeyObj() {
422                    return _announcementsEntry.getPrimaryKeyObj();
423            }
424    
425            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
426                    _announcementsEntry.setPrimaryKeyObj(primaryKeyObj);
427            }
428    
429            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
430                    return _announcementsEntry.getExpandoBridge();
431            }
432    
433            public void setExpandoBridgeAttributes(
434                    com.liferay.portal.service.ServiceContext serviceContext) {
435                    _announcementsEntry.setExpandoBridgeAttributes(serviceContext);
436            }
437    
438            @Override
439            public java.lang.Object clone() {
440                    return new AnnouncementsEntryWrapper((AnnouncementsEntry)_announcementsEntry.clone());
441            }
442    
443            public int compareTo(
444                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry) {
445                    return _announcementsEntry.compareTo(announcementsEntry);
446            }
447    
448            @Override
449            public int hashCode() {
450                    return _announcementsEntry.hashCode();
451            }
452    
453            public com.liferay.portal.model.CacheModel<com.liferay.portlet.announcements.model.AnnouncementsEntry> toCacheModel() {
454                    return _announcementsEntry.toCacheModel();
455            }
456    
457            public com.liferay.portlet.announcements.model.AnnouncementsEntry toEscapedModel() {
458                    return new AnnouncementsEntryWrapper(_announcementsEntry.toEscapedModel());
459            }
460    
461            @Override
462            public java.lang.String toString() {
463                    return _announcementsEntry.toString();
464            }
465    
466            public java.lang.String toXmlString() {
467                    return _announcementsEntry.toXmlString();
468            }
469    
470            public void persist()
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    _announcementsEntry.persist();
473            }
474    
475            public long getGroupId()
476                    throws com.liferay.portal.kernel.exception.PortalException,
477                            com.liferay.portal.kernel.exception.SystemException {
478                    return _announcementsEntry.getGroupId();
479            }
480    
481            public AnnouncementsEntry getWrappedAnnouncementsEntry() {
482                    return _announcementsEntry;
483            }
484    
485            public void resetOriginalValues() {
486                    _announcementsEntry.resetOriginalValues();
487            }
488    
489            private AnnouncementsEntry _announcementsEntry;
490    }