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