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