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