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