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.social.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link SocialActivityAchievement}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       SocialActivityAchievement
026     * @generated
027     */
028    public class SocialActivityAchievementWrapper
029            implements SocialActivityAchievement,
030                    ModelWrapper<SocialActivityAchievement> {
031            public SocialActivityAchievementWrapper(
032                    SocialActivityAchievement socialActivityAchievement) {
033                    _socialActivityAchievement = socialActivityAchievement;
034            }
035    
036            public Class<?> getModelClass() {
037                    return SocialActivityAchievement.class;
038            }
039    
040            public String getModelClassName() {
041                    return SocialActivityAchievement.class.getName();
042            }
043    
044            /**
045            * Returns the primary key of this social activity achievement.
046            *
047            * @return the primary key of this social activity achievement
048            */
049            public long getPrimaryKey() {
050                    return _socialActivityAchievement.getPrimaryKey();
051            }
052    
053            /**
054            * Sets the primary key of this social activity achievement.
055            *
056            * @param primaryKey the primary key of this social activity achievement
057            */
058            public void setPrimaryKey(long primaryKey) {
059                    _socialActivityAchievement.setPrimaryKey(primaryKey);
060            }
061    
062            /**
063            * Returns the activity achievement ID of this social activity achievement.
064            *
065            * @return the activity achievement ID of this social activity achievement
066            */
067            public long getActivityAchievementId() {
068                    return _socialActivityAchievement.getActivityAchievementId();
069            }
070    
071            /**
072            * Sets the activity achievement ID of this social activity achievement.
073            *
074            * @param activityAchievementId the activity achievement ID of this social activity achievement
075            */
076            public void setActivityAchievementId(long activityAchievementId) {
077                    _socialActivityAchievement.setActivityAchievementId(activityAchievementId);
078            }
079    
080            /**
081            * Returns the group ID of this social activity achievement.
082            *
083            * @return the group ID of this social activity achievement
084            */
085            public long getGroupId() {
086                    return _socialActivityAchievement.getGroupId();
087            }
088    
089            /**
090            * Sets the group ID of this social activity achievement.
091            *
092            * @param groupId the group ID of this social activity achievement
093            */
094            public void setGroupId(long groupId) {
095                    _socialActivityAchievement.setGroupId(groupId);
096            }
097    
098            /**
099            * Returns the company ID of this social activity achievement.
100            *
101            * @return the company ID of this social activity achievement
102            */
103            public long getCompanyId() {
104                    return _socialActivityAchievement.getCompanyId();
105            }
106    
107            /**
108            * Sets the company ID of this social activity achievement.
109            *
110            * @param companyId the company ID of this social activity achievement
111            */
112            public void setCompanyId(long companyId) {
113                    _socialActivityAchievement.setCompanyId(companyId);
114            }
115    
116            /**
117            * Returns the user ID of this social activity achievement.
118            *
119            * @return the user ID of this social activity achievement
120            */
121            public long getUserId() {
122                    return _socialActivityAchievement.getUserId();
123            }
124    
125            /**
126            * Sets the user ID of this social activity achievement.
127            *
128            * @param userId the user ID of this social activity achievement
129            */
130            public void setUserId(long userId) {
131                    _socialActivityAchievement.setUserId(userId);
132            }
133    
134            /**
135            * Returns the user uuid of this social activity achievement.
136            *
137            * @return the user uuid of this social activity achievement
138            * @throws SystemException if a system exception occurred
139            */
140            public java.lang.String getUserUuid()
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return _socialActivityAchievement.getUserUuid();
143            }
144    
145            /**
146            * Sets the user uuid of this social activity achievement.
147            *
148            * @param userUuid the user uuid of this social activity achievement
149            */
150            public void setUserUuid(java.lang.String userUuid) {
151                    _socialActivityAchievement.setUserUuid(userUuid);
152            }
153    
154            /**
155            * Returns the create date of this social activity achievement.
156            *
157            * @return the create date of this social activity achievement
158            */
159            public long getCreateDate() {
160                    return _socialActivityAchievement.getCreateDate();
161            }
162    
163            /**
164            * Sets the create date of this social activity achievement.
165            *
166            * @param createDate the create date of this social activity achievement
167            */
168            public void setCreateDate(long createDate) {
169                    _socialActivityAchievement.setCreateDate(createDate);
170            }
171    
172            /**
173            * Returns the name of this social activity achievement.
174            *
175            * @return the name of this social activity achievement
176            */
177            public java.lang.String getName() {
178                    return _socialActivityAchievement.getName();
179            }
180    
181            /**
182            * Sets the name of this social activity achievement.
183            *
184            * @param name the name of this social activity achievement
185            */
186            public void setName(java.lang.String name) {
187                    _socialActivityAchievement.setName(name);
188            }
189    
190            /**
191            * Returns the first in group of this social activity achievement.
192            *
193            * @return the first in group of this social activity achievement
194            */
195            public boolean getFirstInGroup() {
196                    return _socialActivityAchievement.getFirstInGroup();
197            }
198    
199            /**
200            * Returns <code>true</code> if this social activity achievement is first in group.
201            *
202            * @return <code>true</code> if this social activity achievement is first in group; <code>false</code> otherwise
203            */
204            public boolean isFirstInGroup() {
205                    return _socialActivityAchievement.isFirstInGroup();
206            }
207    
208            /**
209            * Sets whether this social activity achievement is first in group.
210            *
211            * @param firstInGroup the first in group of this social activity achievement
212            */
213            public void setFirstInGroup(boolean firstInGroup) {
214                    _socialActivityAchievement.setFirstInGroup(firstInGroup);
215            }
216    
217            public boolean isNew() {
218                    return _socialActivityAchievement.isNew();
219            }
220    
221            public void setNew(boolean n) {
222                    _socialActivityAchievement.setNew(n);
223            }
224    
225            public boolean isCachedModel() {
226                    return _socialActivityAchievement.isCachedModel();
227            }
228    
229            public void setCachedModel(boolean cachedModel) {
230                    _socialActivityAchievement.setCachedModel(cachedModel);
231            }
232    
233            public boolean isEscapedModel() {
234                    return _socialActivityAchievement.isEscapedModel();
235            }
236    
237            public java.io.Serializable getPrimaryKeyObj() {
238                    return _socialActivityAchievement.getPrimaryKeyObj();
239            }
240    
241            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
242                    _socialActivityAchievement.setPrimaryKeyObj(primaryKeyObj);
243            }
244    
245            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
246                    return _socialActivityAchievement.getExpandoBridge();
247            }
248    
249            public void setExpandoBridgeAttributes(
250                    com.liferay.portal.service.ServiceContext serviceContext) {
251                    _socialActivityAchievement.setExpandoBridgeAttributes(serviceContext);
252            }
253    
254            @Override
255            public java.lang.Object clone() {
256                    return new SocialActivityAchievementWrapper((SocialActivityAchievement)_socialActivityAchievement.clone());
257            }
258    
259            public int compareTo(
260                    com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement) {
261                    return _socialActivityAchievement.compareTo(socialActivityAchievement);
262            }
263    
264            @Override
265            public int hashCode() {
266                    return _socialActivityAchievement.hashCode();
267            }
268    
269            public com.liferay.portal.model.CacheModel<com.liferay.portlet.social.model.SocialActivityAchievement> toCacheModel() {
270                    return _socialActivityAchievement.toCacheModel();
271            }
272    
273            public com.liferay.portlet.social.model.SocialActivityAchievement toEscapedModel() {
274                    return new SocialActivityAchievementWrapper(_socialActivityAchievement.toEscapedModel());
275            }
276    
277            @Override
278            public java.lang.String toString() {
279                    return _socialActivityAchievement.toString();
280            }
281    
282            public java.lang.String toXmlString() {
283                    return _socialActivityAchievement.toXmlString();
284            }
285    
286            public void persist()
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    _socialActivityAchievement.persist();
289            }
290    
291            /**
292             * @deprecated Renamed to {@link #getWrappedModel}
293             */
294            public SocialActivityAchievement getWrappedSocialActivityAchievement() {
295                    return _socialActivityAchievement;
296            }
297    
298            public SocialActivityAchievement getWrappedModel() {
299                    return _socialActivityAchievement;
300            }
301    
302            public void resetOriginalValues() {
303                    _socialActivityAchievement.resetOriginalValues();
304            }
305    
306            private SocialActivityAchievement _socialActivityAchievement;
307    }