001    /**
002     * Copyright (c) 2000-2013 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    import java.util.HashMap;
020    import java.util.Map;
021    
022    /**
023     * <p>
024     * This class is a wrapper for {@link SocialRequest}.
025     * </p>
026     *
027     * @author    Brian Wing Shun Chan
028     * @see       SocialRequest
029     * @generated
030     */
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            /**
146            * Returns the primary key of this social request.
147            *
148            * @return the primary key of this social request
149            */
150            public long getPrimaryKey() {
151                    return _socialRequest.getPrimaryKey();
152            }
153    
154            /**
155            * Sets the primary key of this social request.
156            *
157            * @param primaryKey the primary key of this social request
158            */
159            public void setPrimaryKey(long primaryKey) {
160                    _socialRequest.setPrimaryKey(primaryKey);
161            }
162    
163            /**
164            * Returns the uuid of this social request.
165            *
166            * @return the uuid of this social request
167            */
168            public java.lang.String getUuid() {
169                    return _socialRequest.getUuid();
170            }
171    
172            /**
173            * Sets the uuid of this social request.
174            *
175            * @param uuid the uuid of this social request
176            */
177            public void setUuid(java.lang.String uuid) {
178                    _socialRequest.setUuid(uuid);
179            }
180    
181            /**
182            * Returns the request ID of this social request.
183            *
184            * @return the request ID of this social request
185            */
186            public long getRequestId() {
187                    return _socialRequest.getRequestId();
188            }
189    
190            /**
191            * Sets the request ID of this social request.
192            *
193            * @param requestId the request ID of this social request
194            */
195            public void setRequestId(long requestId) {
196                    _socialRequest.setRequestId(requestId);
197            }
198    
199            /**
200            * Returns the group ID of this social request.
201            *
202            * @return the group ID of this social request
203            */
204            public long getGroupId() {
205                    return _socialRequest.getGroupId();
206            }
207    
208            /**
209            * Sets the group ID of this social request.
210            *
211            * @param groupId the group ID of this social request
212            */
213            public void setGroupId(long groupId) {
214                    _socialRequest.setGroupId(groupId);
215            }
216    
217            /**
218            * Returns the company ID of this social request.
219            *
220            * @return the company ID of this social request
221            */
222            public long getCompanyId() {
223                    return _socialRequest.getCompanyId();
224            }
225    
226            /**
227            * Sets the company ID of this social request.
228            *
229            * @param companyId the company ID of this social request
230            */
231            public void setCompanyId(long companyId) {
232                    _socialRequest.setCompanyId(companyId);
233            }
234    
235            /**
236            * Returns the user ID of this social request.
237            *
238            * @return the user ID of this social request
239            */
240            public long getUserId() {
241                    return _socialRequest.getUserId();
242            }
243    
244            /**
245            * Sets the user ID of this social request.
246            *
247            * @param userId the user ID of this social request
248            */
249            public void setUserId(long userId) {
250                    _socialRequest.setUserId(userId);
251            }
252    
253            /**
254            * Returns the user uuid of this social request.
255            *
256            * @return the user uuid of this social request
257            * @throws SystemException if a system exception occurred
258            */
259            public java.lang.String getUserUuid()
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _socialRequest.getUserUuid();
262            }
263    
264            /**
265            * Sets the user uuid of this social request.
266            *
267            * @param userUuid the user uuid of this social request
268            */
269            public void setUserUuid(java.lang.String userUuid) {
270                    _socialRequest.setUserUuid(userUuid);
271            }
272    
273            /**
274            * Returns the create date of this social request.
275            *
276            * @return the create date of this social request
277            */
278            public long getCreateDate() {
279                    return _socialRequest.getCreateDate();
280            }
281    
282            /**
283            * Sets the create date of this social request.
284            *
285            * @param createDate the create date of this social request
286            */
287            public void setCreateDate(long createDate) {
288                    _socialRequest.setCreateDate(createDate);
289            }
290    
291            /**
292            * Returns the modified date of this social request.
293            *
294            * @return the modified date of this social request
295            */
296            public long getModifiedDate() {
297                    return _socialRequest.getModifiedDate();
298            }
299    
300            /**
301            * Sets the modified date of this social request.
302            *
303            * @param modifiedDate the modified date of this social request
304            */
305            public void setModifiedDate(long modifiedDate) {
306                    _socialRequest.setModifiedDate(modifiedDate);
307            }
308    
309            /**
310            * Returns the fully qualified class name of this social request.
311            *
312            * @return the fully qualified class name of this social request
313            */
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            /**
323            * Returns the class name ID of this social request.
324            *
325            * @return the class name ID of this social request
326            */
327            public long getClassNameId() {
328                    return _socialRequest.getClassNameId();
329            }
330    
331            /**
332            * Sets the class name ID of this social request.
333            *
334            * @param classNameId the class name ID of this social request
335            */
336            public void setClassNameId(long classNameId) {
337                    _socialRequest.setClassNameId(classNameId);
338            }
339    
340            /**
341            * Returns the class p k of this social request.
342            *
343            * @return the class p k of this social request
344            */
345            public long getClassPK() {
346                    return _socialRequest.getClassPK();
347            }
348    
349            /**
350            * Sets the class p k of this social request.
351            *
352            * @param classPK the class p k of this social request
353            */
354            public void setClassPK(long classPK) {
355                    _socialRequest.setClassPK(classPK);
356            }
357    
358            /**
359            * Returns the type of this social request.
360            *
361            * @return the type of this social request
362            */
363            public int getType() {
364                    return _socialRequest.getType();
365            }
366    
367            /**
368            * Sets the type of this social request.
369            *
370            * @param type the type of this social request
371            */
372            public void setType(int type) {
373                    _socialRequest.setType(type);
374            }
375    
376            /**
377            * Returns the extra data of this social request.
378            *
379            * @return the extra data of this social request
380            */
381            public java.lang.String getExtraData() {
382                    return _socialRequest.getExtraData();
383            }
384    
385            /**
386            * Sets the extra data of this social request.
387            *
388            * @param extraData the extra data of this social request
389            */
390            public void setExtraData(java.lang.String extraData) {
391                    _socialRequest.setExtraData(extraData);
392            }
393    
394            /**
395            * Returns the receiver user ID of this social request.
396            *
397            * @return the receiver user ID of this social request
398            */
399            public long getReceiverUserId() {
400                    return _socialRequest.getReceiverUserId();
401            }
402    
403            /**
404            * Sets the receiver user ID of this social request.
405            *
406            * @param receiverUserId the receiver user ID of this social request
407            */
408            public void setReceiverUserId(long receiverUserId) {
409                    _socialRequest.setReceiverUserId(receiverUserId);
410            }
411    
412            /**
413            * Returns the receiver user uuid of this social request.
414            *
415            * @return the receiver user uuid of this social request
416            * @throws SystemException if a system exception occurred
417            */
418            public java.lang.String getReceiverUserUuid()
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return _socialRequest.getReceiverUserUuid();
421            }
422    
423            /**
424            * Sets the receiver user uuid of this social request.
425            *
426            * @param receiverUserUuid the receiver user uuid of this social request
427            */
428            public void setReceiverUserUuid(java.lang.String receiverUserUuid) {
429                    _socialRequest.setReceiverUserUuid(receiverUserUuid);
430            }
431    
432            /**
433            * Returns the status of this social request.
434            *
435            * @return the status of this social request
436            */
437            public int getStatus() {
438                    return _socialRequest.getStatus();
439            }
440    
441            /**
442            * Sets the status of this social request.
443            *
444            * @param status the status of this social request
445            */
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            /**
539             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
540             */
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    }