001    /**
002     * Copyright (c) 2000-2013 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 SocialActivitySet}.
025     * </p>
026     *
027     * @author    Brian Wing Shun Chan
028     * @see       SocialActivitySet
029     * @generated
030     */
031    public class SocialActivitySetWrapper implements SocialActivitySet,
032            ModelWrapper<SocialActivitySet> {
033            public SocialActivitySetWrapper(SocialActivitySet socialActivitySet) {
034                    _socialActivitySet = socialActivitySet;
035            }
036    
037            public Class<?> getModelClass() {
038                    return SocialActivitySet.class;
039            }
040    
041            public String getModelClassName() {
042                    return SocialActivitySet.class.getName();
043            }
044    
045            public Map<String, Object> getModelAttributes() {
046                    Map<String, Object> attributes = new HashMap<String, Object>();
047    
048                    attributes.put("activitySetId", getActivitySetId());
049                    attributes.put("groupId", getGroupId());
050                    attributes.put("companyId", getCompanyId());
051                    attributes.put("userId", getUserId());
052                    attributes.put("createDate", getCreateDate());
053                    attributes.put("modifiedDate", getModifiedDate());
054                    attributes.put("classNameId", getClassNameId());
055                    attributes.put("classPK", getClassPK());
056                    attributes.put("type", getType());
057                    attributes.put("activityCount", getActivityCount());
058    
059                    return attributes;
060            }
061    
062            public void setModelAttributes(Map<String, Object> attributes) {
063                    Long activitySetId = (Long)attributes.get("activitySetId");
064    
065                    if (activitySetId != null) {
066                            setActivitySetId(activitySetId);
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                    Long modifiedDate = (Long)attributes.get("modifiedDate");
094    
095                    if (modifiedDate != null) {
096                            setModifiedDate(modifiedDate);
097                    }
098    
099                    Long classNameId = (Long)attributes.get("classNameId");
100    
101                    if (classNameId != null) {
102                            setClassNameId(classNameId);
103                    }
104    
105                    Long classPK = (Long)attributes.get("classPK");
106    
107                    if (classPK != null) {
108                            setClassPK(classPK);
109                    }
110    
111                    Integer type = (Integer)attributes.get("type");
112    
113                    if (type != null) {
114                            setType(type);
115                    }
116    
117                    Integer activityCount = (Integer)attributes.get("activityCount");
118    
119                    if (activityCount != null) {
120                            setActivityCount(activityCount);
121                    }
122            }
123    
124            /**
125            * Returns the primary key of this social activity set.
126            *
127            * @return the primary key of this social activity set
128            */
129            public long getPrimaryKey() {
130                    return _socialActivitySet.getPrimaryKey();
131            }
132    
133            /**
134            * Sets the primary key of this social activity set.
135            *
136            * @param primaryKey the primary key of this social activity set
137            */
138            public void setPrimaryKey(long primaryKey) {
139                    _socialActivitySet.setPrimaryKey(primaryKey);
140            }
141    
142            /**
143            * Returns the activity set ID of this social activity set.
144            *
145            * @return the activity set ID of this social activity set
146            */
147            public long getActivitySetId() {
148                    return _socialActivitySet.getActivitySetId();
149            }
150    
151            /**
152            * Sets the activity set ID of this social activity set.
153            *
154            * @param activitySetId the activity set ID of this social activity set
155            */
156            public void setActivitySetId(long activitySetId) {
157                    _socialActivitySet.setActivitySetId(activitySetId);
158            }
159    
160            /**
161            * Returns the group ID of this social activity set.
162            *
163            * @return the group ID of this social activity set
164            */
165            public long getGroupId() {
166                    return _socialActivitySet.getGroupId();
167            }
168    
169            /**
170            * Sets the group ID of this social activity set.
171            *
172            * @param groupId the group ID of this social activity set
173            */
174            public void setGroupId(long groupId) {
175                    _socialActivitySet.setGroupId(groupId);
176            }
177    
178            /**
179            * Returns the company ID of this social activity set.
180            *
181            * @return the company ID of this social activity set
182            */
183            public long getCompanyId() {
184                    return _socialActivitySet.getCompanyId();
185            }
186    
187            /**
188            * Sets the company ID of this social activity set.
189            *
190            * @param companyId the company ID of this social activity set
191            */
192            public void setCompanyId(long companyId) {
193                    _socialActivitySet.setCompanyId(companyId);
194            }
195    
196            /**
197            * Returns the user ID of this social activity set.
198            *
199            * @return the user ID of this social activity set
200            */
201            public long getUserId() {
202                    return _socialActivitySet.getUserId();
203            }
204    
205            /**
206            * Sets the user ID of this social activity set.
207            *
208            * @param userId the user ID of this social activity set
209            */
210            public void setUserId(long userId) {
211                    _socialActivitySet.setUserId(userId);
212            }
213    
214            /**
215            * Returns the user uuid of this social activity set.
216            *
217            * @return the user uuid of this social activity set
218            * @throws SystemException if a system exception occurred
219            */
220            public java.lang.String getUserUuid()
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _socialActivitySet.getUserUuid();
223            }
224    
225            /**
226            * Sets the user uuid of this social activity set.
227            *
228            * @param userUuid the user uuid of this social activity set
229            */
230            public void setUserUuid(java.lang.String userUuid) {
231                    _socialActivitySet.setUserUuid(userUuid);
232            }
233    
234            /**
235            * Returns the create date of this social activity set.
236            *
237            * @return the create date of this social activity set
238            */
239            public long getCreateDate() {
240                    return _socialActivitySet.getCreateDate();
241            }
242    
243            /**
244            * Sets the create date of this social activity set.
245            *
246            * @param createDate the create date of this social activity set
247            */
248            public void setCreateDate(long createDate) {
249                    _socialActivitySet.setCreateDate(createDate);
250            }
251    
252            /**
253            * Returns the modified date of this social activity set.
254            *
255            * @return the modified date of this social activity set
256            */
257            public long getModifiedDate() {
258                    return _socialActivitySet.getModifiedDate();
259            }
260    
261            /**
262            * Sets the modified date of this social activity set.
263            *
264            * @param modifiedDate the modified date of this social activity set
265            */
266            public void setModifiedDate(long modifiedDate) {
267                    _socialActivitySet.setModifiedDate(modifiedDate);
268            }
269    
270            /**
271            * Returns the fully qualified class name of this social activity set.
272            *
273            * @return the fully qualified class name of this social activity set
274            */
275            public java.lang.String getClassName() {
276                    return _socialActivitySet.getClassName();
277            }
278    
279            public void setClassName(java.lang.String className) {
280                    _socialActivitySet.setClassName(className);
281            }
282    
283            /**
284            * Returns the class name ID of this social activity set.
285            *
286            * @return the class name ID of this social activity set
287            */
288            public long getClassNameId() {
289                    return _socialActivitySet.getClassNameId();
290            }
291    
292            /**
293            * Sets the class name ID of this social activity set.
294            *
295            * @param classNameId the class name ID of this social activity set
296            */
297            public void setClassNameId(long classNameId) {
298                    _socialActivitySet.setClassNameId(classNameId);
299            }
300    
301            /**
302            * Returns the class p k of this social activity set.
303            *
304            * @return the class p k of this social activity set
305            */
306            public long getClassPK() {
307                    return _socialActivitySet.getClassPK();
308            }
309    
310            /**
311            * Sets the class p k of this social activity set.
312            *
313            * @param classPK the class p k of this social activity set
314            */
315            public void setClassPK(long classPK) {
316                    _socialActivitySet.setClassPK(classPK);
317            }
318    
319            /**
320            * Returns the type of this social activity set.
321            *
322            * @return the type of this social activity set
323            */
324            public int getType() {
325                    return _socialActivitySet.getType();
326            }
327    
328            /**
329            * Sets the type of this social activity set.
330            *
331            * @param type the type of this social activity set
332            */
333            public void setType(int type) {
334                    _socialActivitySet.setType(type);
335            }
336    
337            /**
338            * Returns the activity count of this social activity set.
339            *
340            * @return the activity count of this social activity set
341            */
342            public int getActivityCount() {
343                    return _socialActivitySet.getActivityCount();
344            }
345    
346            /**
347            * Sets the activity count of this social activity set.
348            *
349            * @param activityCount the activity count of this social activity set
350            */
351            public void setActivityCount(int activityCount) {
352                    _socialActivitySet.setActivityCount(activityCount);
353            }
354    
355            public boolean isNew() {
356                    return _socialActivitySet.isNew();
357            }
358    
359            public void setNew(boolean n) {
360                    _socialActivitySet.setNew(n);
361            }
362    
363            public boolean isCachedModel() {
364                    return _socialActivitySet.isCachedModel();
365            }
366    
367            public void setCachedModel(boolean cachedModel) {
368                    _socialActivitySet.setCachedModel(cachedModel);
369            }
370    
371            public boolean isEscapedModel() {
372                    return _socialActivitySet.isEscapedModel();
373            }
374    
375            public java.io.Serializable getPrimaryKeyObj() {
376                    return _socialActivitySet.getPrimaryKeyObj();
377            }
378    
379            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
380                    _socialActivitySet.setPrimaryKeyObj(primaryKeyObj);
381            }
382    
383            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
384                    return _socialActivitySet.getExpandoBridge();
385            }
386    
387            public void setExpandoBridgeAttributes(
388                    com.liferay.portal.model.BaseModel<?> baseModel) {
389                    _socialActivitySet.setExpandoBridgeAttributes(baseModel);
390            }
391    
392            public void setExpandoBridgeAttributes(
393                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
394                    _socialActivitySet.setExpandoBridgeAttributes(expandoBridge);
395            }
396    
397            public void setExpandoBridgeAttributes(
398                    com.liferay.portal.service.ServiceContext serviceContext) {
399                    _socialActivitySet.setExpandoBridgeAttributes(serviceContext);
400            }
401    
402            @Override
403            public java.lang.Object clone() {
404                    return new SocialActivitySetWrapper((SocialActivitySet)_socialActivitySet.clone());
405            }
406    
407            public int compareTo(
408                    com.liferay.portlet.social.model.SocialActivitySet socialActivitySet) {
409                    return _socialActivitySet.compareTo(socialActivitySet);
410            }
411    
412            @Override
413            public int hashCode() {
414                    return _socialActivitySet.hashCode();
415            }
416    
417            public com.liferay.portal.model.CacheModel<com.liferay.portlet.social.model.SocialActivitySet> toCacheModel() {
418                    return _socialActivitySet.toCacheModel();
419            }
420    
421            public com.liferay.portlet.social.model.SocialActivitySet toEscapedModel() {
422                    return new SocialActivitySetWrapper(_socialActivitySet.toEscapedModel());
423            }
424    
425            public com.liferay.portlet.social.model.SocialActivitySet toUnescapedModel() {
426                    return new SocialActivitySetWrapper(_socialActivitySet.toUnescapedModel());
427            }
428    
429            @Override
430            public java.lang.String toString() {
431                    return _socialActivitySet.toString();
432            }
433    
434            public java.lang.String toXmlString() {
435                    return _socialActivitySet.toXmlString();
436            }
437    
438            public void persist()
439                    throws com.liferay.portal.kernel.exception.SystemException {
440                    _socialActivitySet.persist();
441            }
442    
443            /**
444             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
445             */
446            public SocialActivitySet getWrappedSocialActivitySet() {
447                    return _socialActivitySet;
448            }
449    
450            public SocialActivitySet getWrappedModel() {
451                    return _socialActivitySet;
452            }
453    
454            public void resetOriginalValues() {
455                    _socialActivitySet.resetOriginalValues();
456            }
457    
458            private SocialActivitySet _socialActivitySet;
459    }