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 AnnouncementsFlag}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AnnouncementsFlag
026     * @generated
027     */
028    public class AnnouncementsFlagWrapper implements AnnouncementsFlag,
029            ModelWrapper<AnnouncementsFlag> {
030            public AnnouncementsFlagWrapper(AnnouncementsFlag announcementsFlag) {
031                    _announcementsFlag = announcementsFlag;
032            }
033    
034            public Class<?> getModelClass() {
035                    return AnnouncementsFlag.class;
036            }
037    
038            public String getModelClassName() {
039                    return AnnouncementsFlag.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this announcements flag.
044            *
045            * @return the primary key of this announcements flag
046            */
047            public long getPrimaryKey() {
048                    return _announcementsFlag.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this announcements flag.
053            *
054            * @param primaryKey the primary key of this announcements flag
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _announcementsFlag.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the flag ID of this announcements flag.
062            *
063            * @return the flag ID of this announcements flag
064            */
065            public long getFlagId() {
066                    return _announcementsFlag.getFlagId();
067            }
068    
069            /**
070            * Sets the flag ID of this announcements flag.
071            *
072            * @param flagId the flag ID of this announcements flag
073            */
074            public void setFlagId(long flagId) {
075                    _announcementsFlag.setFlagId(flagId);
076            }
077    
078            /**
079            * Returns the user ID of this announcements flag.
080            *
081            * @return the user ID of this announcements flag
082            */
083            public long getUserId() {
084                    return _announcementsFlag.getUserId();
085            }
086    
087            /**
088            * Sets the user ID of this announcements flag.
089            *
090            * @param userId the user ID of this announcements flag
091            */
092            public void setUserId(long userId) {
093                    _announcementsFlag.setUserId(userId);
094            }
095    
096            /**
097            * Returns the user uuid of this announcements flag.
098            *
099            * @return the user uuid of this announcements flag
100            * @throws SystemException if a system exception occurred
101            */
102            public java.lang.String getUserUuid()
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return _announcementsFlag.getUserUuid();
105            }
106    
107            /**
108            * Sets the user uuid of this announcements flag.
109            *
110            * @param userUuid the user uuid of this announcements flag
111            */
112            public void setUserUuid(java.lang.String userUuid) {
113                    _announcementsFlag.setUserUuid(userUuid);
114            }
115    
116            /**
117            * Returns the create date of this announcements flag.
118            *
119            * @return the create date of this announcements flag
120            */
121            public java.util.Date getCreateDate() {
122                    return _announcementsFlag.getCreateDate();
123            }
124    
125            /**
126            * Sets the create date of this announcements flag.
127            *
128            * @param createDate the create date of this announcements flag
129            */
130            public void setCreateDate(java.util.Date createDate) {
131                    _announcementsFlag.setCreateDate(createDate);
132            }
133    
134            /**
135            * Returns the entry ID of this announcements flag.
136            *
137            * @return the entry ID of this announcements flag
138            */
139            public long getEntryId() {
140                    return _announcementsFlag.getEntryId();
141            }
142    
143            /**
144            * Sets the entry ID of this announcements flag.
145            *
146            * @param entryId the entry ID of this announcements flag
147            */
148            public void setEntryId(long entryId) {
149                    _announcementsFlag.setEntryId(entryId);
150            }
151    
152            /**
153            * Returns the value of this announcements flag.
154            *
155            * @return the value of this announcements flag
156            */
157            public int getValue() {
158                    return _announcementsFlag.getValue();
159            }
160    
161            /**
162            * Sets the value of this announcements flag.
163            *
164            * @param value the value of this announcements flag
165            */
166            public void setValue(int value) {
167                    _announcementsFlag.setValue(value);
168            }
169    
170            public boolean isNew() {
171                    return _announcementsFlag.isNew();
172            }
173    
174            public void setNew(boolean n) {
175                    _announcementsFlag.setNew(n);
176            }
177    
178            public boolean isCachedModel() {
179                    return _announcementsFlag.isCachedModel();
180            }
181    
182            public void setCachedModel(boolean cachedModel) {
183                    _announcementsFlag.setCachedModel(cachedModel);
184            }
185    
186            public boolean isEscapedModel() {
187                    return _announcementsFlag.isEscapedModel();
188            }
189    
190            public java.io.Serializable getPrimaryKeyObj() {
191                    return _announcementsFlag.getPrimaryKeyObj();
192            }
193    
194            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
195                    _announcementsFlag.setPrimaryKeyObj(primaryKeyObj);
196            }
197    
198            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
199                    return _announcementsFlag.getExpandoBridge();
200            }
201    
202            public void setExpandoBridgeAttributes(
203                    com.liferay.portal.service.ServiceContext serviceContext) {
204                    _announcementsFlag.setExpandoBridgeAttributes(serviceContext);
205            }
206    
207            @Override
208            public java.lang.Object clone() {
209                    return new AnnouncementsFlagWrapper((AnnouncementsFlag)_announcementsFlag.clone());
210            }
211    
212            public int compareTo(
213                    com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag) {
214                    return _announcementsFlag.compareTo(announcementsFlag);
215            }
216    
217            @Override
218            public int hashCode() {
219                    return _announcementsFlag.hashCode();
220            }
221    
222            public com.liferay.portal.model.CacheModel<com.liferay.portlet.announcements.model.AnnouncementsFlag> toCacheModel() {
223                    return _announcementsFlag.toCacheModel();
224            }
225    
226            public com.liferay.portlet.announcements.model.AnnouncementsFlag toEscapedModel() {
227                    return new AnnouncementsFlagWrapper(_announcementsFlag.toEscapedModel());
228            }
229    
230            @Override
231            public java.lang.String toString() {
232                    return _announcementsFlag.toString();
233            }
234    
235            public java.lang.String toXmlString() {
236                    return _announcementsFlag.toXmlString();
237            }
238    
239            public void persist()
240                    throws com.liferay.portal.kernel.exception.SystemException {
241                    _announcementsFlag.persist();
242            }
243    
244            /**
245             * @deprecated Renamed to {@link #getWrappedModel}
246             */
247            public AnnouncementsFlag getWrappedAnnouncementsFlag() {
248                    return _announcementsFlag;
249            }
250    
251            public AnnouncementsFlag getWrappedModel() {
252                    return _announcementsFlag;
253            }
254    
255            public void resetOriginalValues() {
256                    _announcementsFlag.resetOriginalValues();
257            }
258    
259            private AnnouncementsFlag _announcementsFlag;
260    }