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 SocialRequestWrapper implements SocialRequest,
032 ModelWrapper<SocialRequest> {
033 public SocialRequestWrapper(SocialRequest socialRequest) {
034 _socialRequest = socialRequest;
035 }
036
037 public Class<?> getModelClass() {
038 return SocialRequest.class;
039 }
040
041 public String getModelClassName() {
042 return SocialRequest.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("uuid", getUuid());
049 attributes.put("requestId", getRequestId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("createDate", getCreateDate());
054 attributes.put("modifiedDate", getModifiedDate());
055 attributes.put("classNameId", getClassNameId());
056 attributes.put("classPK", getClassPK());
057 attributes.put("type", getType());
058 attributes.put("extraData", getExtraData());
059 attributes.put("receiverUserId", getReceiverUserId());
060 attributes.put("status", getStatus());
061
062 return attributes;
063 }
064
065 public void setModelAttributes(Map<String, Object> attributes) {
066 String uuid = (String)attributes.get("uuid");
067
068 if (uuid != null) {
069 setUuid(uuid);
070 }
071
072 Long requestId = (Long)attributes.get("requestId");
073
074 if (requestId != null) {
075 setRequestId(requestId);
076 }
077
078 Long groupId = (Long)attributes.get("groupId");
079
080 if (groupId != null) {
081 setGroupId(groupId);
082 }
083
084 Long companyId = (Long)attributes.get("companyId");
085
086 if (companyId != null) {
087 setCompanyId(companyId);
088 }
089
090 Long userId = (Long)attributes.get("userId");
091
092 if (userId != null) {
093 setUserId(userId);
094 }
095
096 Long createDate = (Long)attributes.get("createDate");
097
098 if (createDate != null) {
099 setCreateDate(createDate);
100 }
101
102 Long modifiedDate = (Long)attributes.get("modifiedDate");
103
104 if (modifiedDate != null) {
105 setModifiedDate(modifiedDate);
106 }
107
108 Long classNameId = (Long)attributes.get("classNameId");
109
110 if (classNameId != null) {
111 setClassNameId(classNameId);
112 }
113
114 Long classPK = (Long)attributes.get("classPK");
115
116 if (classPK != null) {
117 setClassPK(classPK);
118 }
119
120 Integer type = (Integer)attributes.get("type");
121
122 if (type != null) {
123 setType(type);
124 }
125
126 String extraData = (String)attributes.get("extraData");
127
128 if (extraData != null) {
129 setExtraData(extraData);
130 }
131
132 Long receiverUserId = (Long)attributes.get("receiverUserId");
133
134 if (receiverUserId != null) {
135 setReceiverUserId(receiverUserId);
136 }
137
138 Integer status = (Integer)attributes.get("status");
139
140 if (status != null) {
141 setStatus(status);
142 }
143 }
144
145
150 public long getPrimaryKey() {
151 return _socialRequest.getPrimaryKey();
152 }
153
154
159 public void setPrimaryKey(long primaryKey) {
160 _socialRequest.setPrimaryKey(primaryKey);
161 }
162
163
168 public java.lang.String getUuid() {
169 return _socialRequest.getUuid();
170 }
171
172
177 public void setUuid(java.lang.String uuid) {
178 _socialRequest.setUuid(uuid);
179 }
180
181
186 public long getRequestId() {
187 return _socialRequest.getRequestId();
188 }
189
190
195 public void setRequestId(long requestId) {
196 _socialRequest.setRequestId(requestId);
197 }
198
199
204 public long getGroupId() {
205 return _socialRequest.getGroupId();
206 }
207
208
213 public void setGroupId(long groupId) {
214 _socialRequest.setGroupId(groupId);
215 }
216
217
222 public long getCompanyId() {
223 return _socialRequest.getCompanyId();
224 }
225
226
231 public void setCompanyId(long companyId) {
232 _socialRequest.setCompanyId(companyId);
233 }
234
235
240 public long getUserId() {
241 return _socialRequest.getUserId();
242 }
243
244
249 public void setUserId(long userId) {
250 _socialRequest.setUserId(userId);
251 }
252
253
259 public java.lang.String getUserUuid()
260 throws com.liferay.portal.kernel.exception.SystemException {
261 return _socialRequest.getUserUuid();
262 }
263
264
269 public void setUserUuid(java.lang.String userUuid) {
270 _socialRequest.setUserUuid(userUuid);
271 }
272
273
278 public long getCreateDate() {
279 return _socialRequest.getCreateDate();
280 }
281
282
287 public void setCreateDate(long createDate) {
288 _socialRequest.setCreateDate(createDate);
289 }
290
291
296 public long getModifiedDate() {
297 return _socialRequest.getModifiedDate();
298 }
299
300
305 public void setModifiedDate(long modifiedDate) {
306 _socialRequest.setModifiedDate(modifiedDate);
307 }
308
309
314 public java.lang.String getClassName() {
315 return _socialRequest.getClassName();
316 }
317
318 public void setClassName(java.lang.String className) {
319 _socialRequest.setClassName(className);
320 }
321
322
327 public long getClassNameId() {
328 return _socialRequest.getClassNameId();
329 }
330
331
336 public void setClassNameId(long classNameId) {
337 _socialRequest.setClassNameId(classNameId);
338 }
339
340
345 public long getClassPK() {
346 return _socialRequest.getClassPK();
347 }
348
349
354 public void setClassPK(long classPK) {
355 _socialRequest.setClassPK(classPK);
356 }
357
358
363 public int getType() {
364 return _socialRequest.getType();
365 }
366
367
372 public void setType(int type) {
373 _socialRequest.setType(type);
374 }
375
376
381 public java.lang.String getExtraData() {
382 return _socialRequest.getExtraData();
383 }
384
385
390 public void setExtraData(java.lang.String extraData) {
391 _socialRequest.setExtraData(extraData);
392 }
393
394
399 public long getReceiverUserId() {
400 return _socialRequest.getReceiverUserId();
401 }
402
403
408 public void setReceiverUserId(long receiverUserId) {
409 _socialRequest.setReceiverUserId(receiverUserId);
410 }
411
412
418 public java.lang.String getReceiverUserUuid()
419 throws com.liferay.portal.kernel.exception.SystemException {
420 return _socialRequest.getReceiverUserUuid();
421 }
422
423
428 public void setReceiverUserUuid(java.lang.String receiverUserUuid) {
429 _socialRequest.setReceiverUserUuid(receiverUserUuid);
430 }
431
432
437 public int getStatus() {
438 return _socialRequest.getStatus();
439 }
440
441
446 public void setStatus(int status) {
447 _socialRequest.setStatus(status);
448 }
449
450 public boolean isNew() {
451 return _socialRequest.isNew();
452 }
453
454 public void setNew(boolean n) {
455 _socialRequest.setNew(n);
456 }
457
458 public boolean isCachedModel() {
459 return _socialRequest.isCachedModel();
460 }
461
462 public void setCachedModel(boolean cachedModel) {
463 _socialRequest.setCachedModel(cachedModel);
464 }
465
466 public boolean isEscapedModel() {
467 return _socialRequest.isEscapedModel();
468 }
469
470 public java.io.Serializable getPrimaryKeyObj() {
471 return _socialRequest.getPrimaryKeyObj();
472 }
473
474 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
475 _socialRequest.setPrimaryKeyObj(primaryKeyObj);
476 }
477
478 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
479 return _socialRequest.getExpandoBridge();
480 }
481
482 public void setExpandoBridgeAttributes(
483 com.liferay.portal.model.BaseModel<?> baseModel) {
484 _socialRequest.setExpandoBridgeAttributes(baseModel);
485 }
486
487 public void setExpandoBridgeAttributes(
488 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
489 _socialRequest.setExpandoBridgeAttributes(expandoBridge);
490 }
491
492 public void setExpandoBridgeAttributes(
493 com.liferay.portal.service.ServiceContext serviceContext) {
494 _socialRequest.setExpandoBridgeAttributes(serviceContext);
495 }
496
497 @Override
498 public java.lang.Object clone() {
499 return new SocialRequestWrapper((SocialRequest)_socialRequest.clone());
500 }
501
502 public int compareTo(
503 com.liferay.portlet.social.model.SocialRequest socialRequest) {
504 return _socialRequest.compareTo(socialRequest);
505 }
506
507 @Override
508 public int hashCode() {
509 return _socialRequest.hashCode();
510 }
511
512 public com.liferay.portal.model.CacheModel<com.liferay.portlet.social.model.SocialRequest> toCacheModel() {
513 return _socialRequest.toCacheModel();
514 }
515
516 public com.liferay.portlet.social.model.SocialRequest toEscapedModel() {
517 return new SocialRequestWrapper(_socialRequest.toEscapedModel());
518 }
519
520 public com.liferay.portlet.social.model.SocialRequest toUnescapedModel() {
521 return new SocialRequestWrapper(_socialRequest.toUnescapedModel());
522 }
523
524 @Override
525 public java.lang.String toString() {
526 return _socialRequest.toString();
527 }
528
529 public java.lang.String toXmlString() {
530 return _socialRequest.toXmlString();
531 }
532
533 public void persist()
534 throws com.liferay.portal.kernel.exception.SystemException {
535 _socialRequest.persist();
536 }
537
538
541 public SocialRequest getWrappedSocialRequest() {
542 return _socialRequest;
543 }
544
545 public SocialRequest getWrappedModel() {
546 return _socialRequest;
547 }
548
549 public void resetOriginalValues() {
550 _socialRequest.resetOriginalValues();
551 }
552
553 private SocialRequest _socialRequest;
554 }