001
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
031 public class SocialActivityCounterWrapper implements SocialActivityCounter,
032 ModelWrapper<SocialActivityCounter> {
033 public SocialActivityCounterWrapper(
034 SocialActivityCounter socialActivityCounter) {
035 _socialActivityCounter = socialActivityCounter;
036 }
037
038 public Class<?> getModelClass() {
039 return SocialActivityCounter.class;
040 }
041
042 public String getModelClassName() {
043 return SocialActivityCounter.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("activityCounterId", getActivityCounterId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("classNameId", getClassNameId());
053 attributes.put("classPK", getClassPK());
054 attributes.put("name", getName());
055 attributes.put("ownerType", getOwnerType());
056 attributes.put("currentValue", getCurrentValue());
057 attributes.put("totalValue", getTotalValue());
058 attributes.put("graceValue", getGraceValue());
059 attributes.put("startPeriod", getStartPeriod());
060 attributes.put("endPeriod", getEndPeriod());
061 attributes.put("active", getActive());
062
063 return attributes;
064 }
065
066 public void setModelAttributes(Map<String, Object> attributes) {
067 Long activityCounterId = (Long)attributes.get("activityCounterId");
068
069 if (activityCounterId != null) {
070 setActivityCounterId(activityCounterId);
071 }
072
073 Long groupId = (Long)attributes.get("groupId");
074
075 if (groupId != null) {
076 setGroupId(groupId);
077 }
078
079 Long companyId = (Long)attributes.get("companyId");
080
081 if (companyId != null) {
082 setCompanyId(companyId);
083 }
084
085 Long classNameId = (Long)attributes.get("classNameId");
086
087 if (classNameId != null) {
088 setClassNameId(classNameId);
089 }
090
091 Long classPK = (Long)attributes.get("classPK");
092
093 if (classPK != null) {
094 setClassPK(classPK);
095 }
096
097 String name = (String)attributes.get("name");
098
099 if (name != null) {
100 setName(name);
101 }
102
103 Integer ownerType = (Integer)attributes.get("ownerType");
104
105 if (ownerType != null) {
106 setOwnerType(ownerType);
107 }
108
109 Integer currentValue = (Integer)attributes.get("currentValue");
110
111 if (currentValue != null) {
112 setCurrentValue(currentValue);
113 }
114
115 Integer totalValue = (Integer)attributes.get("totalValue");
116
117 if (totalValue != null) {
118 setTotalValue(totalValue);
119 }
120
121 Integer graceValue = (Integer)attributes.get("graceValue");
122
123 if (graceValue != null) {
124 setGraceValue(graceValue);
125 }
126
127 Integer startPeriod = (Integer)attributes.get("startPeriod");
128
129 if (startPeriod != null) {
130 setStartPeriod(startPeriod);
131 }
132
133 Integer endPeriod = (Integer)attributes.get("endPeriod");
134
135 if (endPeriod != null) {
136 setEndPeriod(endPeriod);
137 }
138
139 Boolean active = (Boolean)attributes.get("active");
140
141 if (active != null) {
142 setActive(active);
143 }
144 }
145
146
151 public long getPrimaryKey() {
152 return _socialActivityCounter.getPrimaryKey();
153 }
154
155
160 public void setPrimaryKey(long primaryKey) {
161 _socialActivityCounter.setPrimaryKey(primaryKey);
162 }
163
164
169 public long getActivityCounterId() {
170 return _socialActivityCounter.getActivityCounterId();
171 }
172
173
178 public void setActivityCounterId(long activityCounterId) {
179 _socialActivityCounter.setActivityCounterId(activityCounterId);
180 }
181
182
187 public long getGroupId() {
188 return _socialActivityCounter.getGroupId();
189 }
190
191
196 public void setGroupId(long groupId) {
197 _socialActivityCounter.setGroupId(groupId);
198 }
199
200
205 public long getCompanyId() {
206 return _socialActivityCounter.getCompanyId();
207 }
208
209
214 public void setCompanyId(long companyId) {
215 _socialActivityCounter.setCompanyId(companyId);
216 }
217
218
223 public java.lang.String getClassName() {
224 return _socialActivityCounter.getClassName();
225 }
226
227 public void setClassName(java.lang.String className) {
228 _socialActivityCounter.setClassName(className);
229 }
230
231
236 public long getClassNameId() {
237 return _socialActivityCounter.getClassNameId();
238 }
239
240
245 public void setClassNameId(long classNameId) {
246 _socialActivityCounter.setClassNameId(classNameId);
247 }
248
249
254 public long getClassPK() {
255 return _socialActivityCounter.getClassPK();
256 }
257
258
263 public void setClassPK(long classPK) {
264 _socialActivityCounter.setClassPK(classPK);
265 }
266
267
272 public java.lang.String getName() {
273 return _socialActivityCounter.getName();
274 }
275
276
281 public void setName(java.lang.String name) {
282 _socialActivityCounter.setName(name);
283 }
284
285
290 public int getOwnerType() {
291 return _socialActivityCounter.getOwnerType();
292 }
293
294
299 public void setOwnerType(int ownerType) {
300 _socialActivityCounter.setOwnerType(ownerType);
301 }
302
303
308 public int getCurrentValue() {
309 return _socialActivityCounter.getCurrentValue();
310 }
311
312
317 public void setCurrentValue(int currentValue) {
318 _socialActivityCounter.setCurrentValue(currentValue);
319 }
320
321
326 public int getTotalValue() {
327 return _socialActivityCounter.getTotalValue();
328 }
329
330
335 public void setTotalValue(int totalValue) {
336 _socialActivityCounter.setTotalValue(totalValue);
337 }
338
339
344 public int getGraceValue() {
345 return _socialActivityCounter.getGraceValue();
346 }
347
348
353 public void setGraceValue(int graceValue) {
354 _socialActivityCounter.setGraceValue(graceValue);
355 }
356
357
362 public int getStartPeriod() {
363 return _socialActivityCounter.getStartPeriod();
364 }
365
366
371 public void setStartPeriod(int startPeriod) {
372 _socialActivityCounter.setStartPeriod(startPeriod);
373 }
374
375
380 public int getEndPeriod() {
381 return _socialActivityCounter.getEndPeriod();
382 }
383
384
389 public void setEndPeriod(int endPeriod) {
390 _socialActivityCounter.setEndPeriod(endPeriod);
391 }
392
393
398 public boolean getActive() {
399 return _socialActivityCounter.getActive();
400 }
401
402
407 public boolean isActive() {
408 return _socialActivityCounter.isActive();
409 }
410
411
416 public void setActive(boolean active) {
417 _socialActivityCounter.setActive(active);
418 }
419
420 public boolean isNew() {
421 return _socialActivityCounter.isNew();
422 }
423
424 public void setNew(boolean n) {
425 _socialActivityCounter.setNew(n);
426 }
427
428 public boolean isCachedModel() {
429 return _socialActivityCounter.isCachedModel();
430 }
431
432 public void setCachedModel(boolean cachedModel) {
433 _socialActivityCounter.setCachedModel(cachedModel);
434 }
435
436 public boolean isEscapedModel() {
437 return _socialActivityCounter.isEscapedModel();
438 }
439
440 public java.io.Serializable getPrimaryKeyObj() {
441 return _socialActivityCounter.getPrimaryKeyObj();
442 }
443
444 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
445 _socialActivityCounter.setPrimaryKeyObj(primaryKeyObj);
446 }
447
448 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
449 return _socialActivityCounter.getExpandoBridge();
450 }
451
452 public void setExpandoBridgeAttributes(
453 com.liferay.portal.service.ServiceContext serviceContext) {
454 _socialActivityCounter.setExpandoBridgeAttributes(serviceContext);
455 }
456
457 @Override
458 public java.lang.Object clone() {
459 return new SocialActivityCounterWrapper((SocialActivityCounter)_socialActivityCounter.clone());
460 }
461
462 public int compareTo(
463 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter) {
464 return _socialActivityCounter.compareTo(socialActivityCounter);
465 }
466
467 @Override
468 public int hashCode() {
469 return _socialActivityCounter.hashCode();
470 }
471
472 public com.liferay.portal.model.CacheModel<com.liferay.portlet.social.model.SocialActivityCounter> toCacheModel() {
473 return _socialActivityCounter.toCacheModel();
474 }
475
476 public com.liferay.portlet.social.model.SocialActivityCounter toEscapedModel() {
477 return new SocialActivityCounterWrapper(_socialActivityCounter.toEscapedModel());
478 }
479
480 @Override
481 public java.lang.String toString() {
482 return _socialActivityCounter.toString();
483 }
484
485 public java.lang.String toXmlString() {
486 return _socialActivityCounter.toXmlString();
487 }
488
489 public void persist()
490 throws com.liferay.portal.kernel.exception.SystemException {
491 _socialActivityCounter.persist();
492 }
493
494 public boolean isActivePeriod(int periodLength) {
495 return _socialActivityCounter.isActivePeriod(periodLength);
496 }
497
498
501 public SocialActivityCounter getWrappedSocialActivityCounter() {
502 return _socialActivityCounter;
503 }
504
505 public SocialActivityCounter getWrappedModel() {
506 return _socialActivityCounter;
507 }
508
509 public void resetOriginalValues() {
510 _socialActivityCounter.resetOriginalValues();
511 }
512
513 private SocialActivityCounter _socialActivityCounter;
514 }