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