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 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
129 public long getPrimaryKey() {
130 return _socialActivitySet.getPrimaryKey();
131 }
132
133
138 public void setPrimaryKey(long primaryKey) {
139 _socialActivitySet.setPrimaryKey(primaryKey);
140 }
141
142
147 public long getActivitySetId() {
148 return _socialActivitySet.getActivitySetId();
149 }
150
151
156 public void setActivitySetId(long activitySetId) {
157 _socialActivitySet.setActivitySetId(activitySetId);
158 }
159
160
165 public long getGroupId() {
166 return _socialActivitySet.getGroupId();
167 }
168
169
174 public void setGroupId(long groupId) {
175 _socialActivitySet.setGroupId(groupId);
176 }
177
178
183 public long getCompanyId() {
184 return _socialActivitySet.getCompanyId();
185 }
186
187
192 public void setCompanyId(long companyId) {
193 _socialActivitySet.setCompanyId(companyId);
194 }
195
196
201 public long getUserId() {
202 return _socialActivitySet.getUserId();
203 }
204
205
210 public void setUserId(long userId) {
211 _socialActivitySet.setUserId(userId);
212 }
213
214
220 public java.lang.String getUserUuid()
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return _socialActivitySet.getUserUuid();
223 }
224
225
230 public void setUserUuid(java.lang.String userUuid) {
231 _socialActivitySet.setUserUuid(userUuid);
232 }
233
234
239 public long getCreateDate() {
240 return _socialActivitySet.getCreateDate();
241 }
242
243
248 public void setCreateDate(long createDate) {
249 _socialActivitySet.setCreateDate(createDate);
250 }
251
252
257 public long getModifiedDate() {
258 return _socialActivitySet.getModifiedDate();
259 }
260
261
266 public void setModifiedDate(long modifiedDate) {
267 _socialActivitySet.setModifiedDate(modifiedDate);
268 }
269
270
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
288 public long getClassNameId() {
289 return _socialActivitySet.getClassNameId();
290 }
291
292
297 public void setClassNameId(long classNameId) {
298 _socialActivitySet.setClassNameId(classNameId);
299 }
300
301
306 public long getClassPK() {
307 return _socialActivitySet.getClassPK();
308 }
309
310
315 public void setClassPK(long classPK) {
316 _socialActivitySet.setClassPK(classPK);
317 }
318
319
324 public int getType() {
325 return _socialActivitySet.getType();
326 }
327
328
333 public void setType(int type) {
334 _socialActivitySet.setType(type);
335 }
336
337
342 public int getActivityCount() {
343 return _socialActivitySet.getActivityCount();
344 }
345
346
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.service.ServiceContext serviceContext) {
389 _socialActivitySet.setExpandoBridgeAttributes(serviceContext);
390 }
391
392 @Override
393 public java.lang.Object clone() {
394 return new SocialActivitySetWrapper((SocialActivitySet)_socialActivitySet.clone());
395 }
396
397 public int compareTo(
398 com.liferay.portlet.social.model.SocialActivitySet socialActivitySet) {
399 return _socialActivitySet.compareTo(socialActivitySet);
400 }
401
402 @Override
403 public int hashCode() {
404 return _socialActivitySet.hashCode();
405 }
406
407 public com.liferay.portal.model.CacheModel<com.liferay.portlet.social.model.SocialActivitySet> toCacheModel() {
408 return _socialActivitySet.toCacheModel();
409 }
410
411 public com.liferay.portlet.social.model.SocialActivitySet toEscapedModel() {
412 return new SocialActivitySetWrapper(_socialActivitySet.toEscapedModel());
413 }
414
415 public com.liferay.portlet.social.model.SocialActivitySet toUnescapedModel() {
416 return new SocialActivitySetWrapper(_socialActivitySet.toUnescapedModel());
417 }
418
419 @Override
420 public java.lang.String toString() {
421 return _socialActivitySet.toString();
422 }
423
424 public java.lang.String toXmlString() {
425 return _socialActivitySet.toXmlString();
426 }
427
428 public void persist()
429 throws com.liferay.portal.kernel.exception.SystemException {
430 _socialActivitySet.persist();
431 }
432
433
436 public SocialActivitySet getWrappedSocialActivitySet() {
437 return _socialActivitySet;
438 }
439
440 public SocialActivitySet getWrappedModel() {
441 return _socialActivitySet;
442 }
443
444 public void resetOriginalValues() {
445 _socialActivitySet.resetOriginalValues();
446 }
447
448 private SocialActivitySet _socialActivitySet;
449 }