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